]> git.sven.stormbind.net Git - sven/exfat-utils.git/blobdiff - libexfat/mount.c
Merge tag 'upstream/1.2.4'
[sven/exfat-utils.git] / libexfat / mount.c
index f1fb01a9a88c8ee20eb3730c6669ee905cfbfcd3..b1ce6543884d3155b4552863781e3c79c4c2bba2 100644 (file)
@@ -3,7 +3,7 @@
        exFAT file system implementation library.
 
        Free exFAT implementation.
-       Copyright (C) 2010-2015  Andrew Nayenko
+       Copyright (C) 2010-2016  Andrew Nayenko
 
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
@@ -359,7 +359,8 @@ static void finalize_super_block(struct exfat* ef)
 
 void exfat_unmount(struct exfat* ef)
 {
-       exfat_flush(ef);        /* ignore return code */
+       exfat_flush_nodes(ef);  /* ignore return code */
+       exfat_flush(ef);                /* ignore return code */
        exfat_put_node(ef, ef->root);
        exfat_reset_cache(ef);
        free(ef->root);
@@ -375,5 +376,4 @@ void exfat_unmount(struct exfat* ef)
        ef->sb = NULL;
        free(ef->upcase);
        ef->upcase = NULL;
-       ef->upcase_chars = 0;
 }