diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-05-12 13:21:26 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-10-11 14:42:19 +0100 |
| commit | 521aa8c1c04c25a57b82e1279a4e91d8a07436aa (patch) | |
| tree | cc717e7a2abc6a01fdbf06e36d4888a0df8d7921 /src/global.c | |
| parent | fe12423a91015e6116773340a8936fece3251339 (diff) | |
| download | libgit2-521aa8c1c04c25a57b82e1279a4e91d8a07436aa.tar.gz | |
win32: teach the allocator to deal with crtdbg
Move the MSVC C runtime debugging bits into the allocator's global init
function.
Diffstat (limited to 'src/global.c')
| -rw-r--r-- | src/global.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/global.c b/src/global.c index 4abb5e387..d2a25a504 100644 --- a/src/global.c +++ b/src/global.c @@ -19,11 +19,7 @@ #include "thread-utils.h" #include "git2/global.h" #include "transports/ssh.h" - -#if defined(GIT_MSVC_CRTDBG) #include "win32/w32_stack.h" -#include "win32/w32_crtdbg_stacktrace.h" -#endif git_mutex git__mwindow_mutex; @@ -72,12 +68,6 @@ static int init_common(void) size_t i; int ret; - /* Initialize the CRT debug allocator first, before our first malloc */ -#if defined(GIT_MSVC_CRTDBG) - git_win32__crtdbg_stacktrace_init(); - git_win32__stack_init(); -#endif - /* Initialize subsystems that have global state */ for (i = 0; i < ARRAY_SIZE(git__init_callbacks); i++) if ((ret = git__init_callbacks[i]()) != 0) @@ -200,11 +190,6 @@ int git_libgit2_shutdown(void) FlsFree(_fls_index); git_mutex_free(&git__mwindow_mutex); - -#if defined(GIT_MSVC_CRTDBG) - git_win32__crtdbg_stacktrace_cleanup(); - git_win32__stack_cleanup(); -#endif } /* Exit the lock */ |
