From 64b623ef3c75c9fe5952f2b9dfa387e4ee8148a5 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Nov 2018 02:10:10 +0300 Subject: [PATCH] Turn off leak detection mode explicitly in cord/de * cord/tests/de.c [!WIN32] (main): Call GC_set_find_leak(0) before GC_INIT() to disable leak detection mode. * cord/tests/de_win.c [WIN32] (WinMain): Likewise. --- cord/tests/de.c | 1 + cord/tests/de_win.c | 1 + 2 files changed, 2 insertions(+) diff --git a/cord/tests/de.c b/cord/tests/de.c index 0d0dc5f..2707405 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -596,6 +596,7 @@ int main(int argc, char **argv) cshow(stdout); argc = ccommand(&argv); # endif + GC_set_find_leak(0); /* app is not for testing leak detection mode */ GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental(); diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index 62cff65..a41eb3d 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -51,6 +51,7 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, WNDCLASS wndclass; HACCEL hAccel; + GC_set_find_leak(0); GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental(); -- 2.7.4