From b70e08592163f94220c3f48cad344ba96d374f87 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Tue, 19 Sep 2017 21:06:15 +0200 Subject: fix possible crashes upon exit --- src/libui_sdl/libui/windows/alloc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libui_sdl/libui/windows/alloc.cpp') diff --git a/src/libui_sdl/libui/windows/alloc.cpp b/src/libui_sdl/libui/windows/alloc.cpp index eeee3ad..cf6bd2e 100644 --- a/src/libui_sdl/libui/windows/alloc.cpp +++ b/src/libui_sdl/libui/windows/alloc.cpp @@ -22,6 +22,7 @@ void uninitAlloc(void) // note the void * cast; otherwise it'll be treated as a string oss << (void *) (alloc.first) << " " << types[alloc.second] << "\n"; ossstr = oss.str(); + printf("data leak: %s\n", ossstr.c_str()); userbug("Some data was leaked; either you left a uiControl lying around or there's a bug in libui itself. Leaked data:\n%s", ossstr.c_str()); } -- cgit v1.2.3