diff options
author | Edward Thomson <ethomson@microsoft.com> | 2012-11-13 14:48:10 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2012-11-13 14:48:10 -0600 |
commit | a8527429dc48ce0f9b63789715ed8eaa9b1abf0d (patch) | |
tree | 6f6f4ce640989a4f78d8f3ca7d1b39b9ac10ceef /src/global.c | |
parent | 7ebefd22e79e92542d68743af933c1a188f4d5a3 (diff) | |
download | libgit2-a8527429dc48ce0f9b63789715ed8eaa9b1abf0d.tar.gz |
unload dll / destroy hash ctxs at shutdown
Diffstat (limited to 'src/global.c')
-rw-r--r-- | src/global.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c index de7e42d02..d085089c3 100644 --- a/src/global.c +++ b/src/global.c @@ -79,6 +79,9 @@ void git_threads_shutdown(void) TlsFree(_tls_index); _tls_init = 0; git_mutex_free(&git__mwindow_mutex); + + /* Shut down any subsystems that have global state */ + git_hash_global_shutdown(); } git_global_st *git__global_state(void) @@ -131,6 +134,9 @@ void git_threads_shutdown(void) { pthread_key_delete(_tls_key); _tls_init = 0; + + /* Shut down any subsystems that have global state */ + git_hash_global_shutdown(); } git_global_st *git__global_state(void) |