From e194f3fc932d9213216c2827fba248f81768a492 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 0d0dc5f4..2707405a 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 62cff652..a41eb3d7 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.40.0