aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/windows/alloc.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-09-19 21:06:15 +0200
committerStapleButter <thetotalworm@gmail.com>2017-09-19 21:06:15 +0200
commitb70e08592163f94220c3f48cad344ba96d374f87 (patch)
tree6e41e02d48b4c6bb6d486e008e43476da8ec1908 /src/libui_sdl/libui/windows/alloc.cpp
parentdbefaf0ad3a0a68f7e85c8ec1c6a4d39cacbd94b (diff)
fix possible crashes upon exit
Diffstat (limited to 'src/libui_sdl/libui/windows/alloc.cpp')
-rw-r--r--src/libui_sdl/libui/windows/alloc.cpp1
1 files changed, 1 insertions, 0 deletions
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());
}