]> git.proxmox.com Git - libgit2.git/commitdiff
mwindow: clean up pack map at shutdown
authorEdward Thomson <ethomson@edwardthomson.com>
Sat, 25 Oct 2014 23:53:07 +0000 (19:53 -0400)
committerEdward Thomson <ethomson@microsoft.com>
Mon, 27 Oct 2014 02:27:56 +0000 (22:27 -0400)
src/mwindow.c

index 1d64d26a445c8ec7e79ca9049310523f7a1a3e4a..0444cd98c4d3c6d62bdf44929cf438bdb97b42d3 100644 (file)
@@ -41,6 +41,8 @@ int git_mwindow_files_init(void)
        if (git__pack_cache)
                return 0;
 
+       git__on_shutdown(git_mwindow_files_free);
+
        return git_strmap_alloc(&git__pack_cache);
 }