[Haiku-commits] r31224 - haiku/trunk/src/apps/debugger
bonefish at BerliOS
bonefish at mail.berlios.de
Wed Jun 24 14:34:49 CEST 2009
Author: bonefish
Date: 2009-06-24 14:34:48 +0200 (Wed, 24 Jun 2009)
New Revision: 31224
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31224&view=rev
Modified:
haiku/trunk/src/apps/debugger/TeamDebugger.cpp
Log:
Quit the window on destruction.
Modified: haiku/trunk/src/apps/debugger/TeamDebugger.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/TeamDebugger.cpp 2009-06-24 11:49:35 UTC (rev 31223)
+++ haiku/trunk/src/apps/debugger/TeamDebugger.cpp 2009-06-24 12:34:48 UTC (rev 31224)
@@ -59,6 +59,14 @@
if (fDebugEventListener >= 0)
wait_for_thread(fDebugEventListener, NULL);
+ // quit window
+ if (fTeamWindow != NULL) {
+ // TODO: This is not clean. If the window has been deleted we shouldn't
+ // try to access it!
+ if (fTeamWindow->Lock())
+ fTeamWindow->Quit();
+ }
+
ThreadHandler* threadHandler = fThreadHandlers.Clear(true);
while (threadHandler != NULL) {
ThreadHandler* next = threadHandler->fNext;
More information about the Haiku-commits
mailing list