Commit 8c8ca7309b5b1f81d706226bd9f9ed6e3346e63a

Edward Thomson 2014-10-25T19:53:07

mwindow: clean up pack map at shutdown

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/mwindow.c b/src/mwindow.c
index 1d64d26..0444cd9 100644
--- a/src/mwindow.c
+++ b/src/mwindow.c
@@ -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);
 }