Core: Dbg mode heap leaks now Panics

git-svn-id: svn://ultimatepp.org/upp/trunk@7128 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-01 19:38:48 +00:00
parent ff0f80a531
commit af8503548b

View file

@ -179,20 +179,13 @@ void MemoryDumpLeaks()
if(!leaks)
return;
#ifdef PLATFORM_WIN32
#ifdef PLATFORM_WINCE
MessageBox(::GetActiveWindow(),
L"Heap leaks detected !",
L"Warning",
MB_ICONSTOP|MB_OK|MB_APPLMODAL);
#else
MessageBox(::GetActiveWindow(),
"Heap leaks detected !",
"Warning",
MB_ICONSTOP|MB_OK|MB_APPLMODAL);
#endif
#else
if(!IsPanicMode())
PanicMessageBox("Warning", "Heap leaks detected!");
Panic("Heap leaks detected!");
#endif
Heap::AuxFinalCheck();
}