mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-28 16:50:15 -06:00
fix possible crashes upon exit
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user