[rkward-cvs] SF.net SVN: rkward:[4263] trunk/rkward/rkward/plugin/rkstandardcomponent. cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri May 25 15:34:24 UTC 2012


Revision: 4263
          http://rkward.svn.sourceforge.net/rkward/?rev=4263&view=rev
Author:   tfry
Date:     2012-05-25 15:34:23 +0000 (Fri, 25 May 2012)
Log Message:
-----------
Fix a problem with timer events during plugin shutdown.

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkstandardcomponent.cpp

Modified: trunk/rkward/rkward/plugin/rkstandardcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkstandardcomponent.cpp	2012-05-24 20:58:59 UTC (rev 4262)
+++ trunk/rkward/rkward/plugin/rkstandardcomponent.cpp	2012-05-25 15:34:23 UTC (rev 4263)
@@ -167,7 +167,7 @@
 RKStandardComponent::~RKStandardComponent () {
 	RK_TRACE (PLUGIN);
 
-	if (gui) gui->deleteLater ();
+	if (gui) delete gui;	// NOTE: *NOT* using gui->deleteLater (). Destructing the GUI immediately is necessary to get rid of child components, immediately. Otherwise these could try to access their (destroyed) parent, e.g. if they have a timer running that gets triggered before the deletion event arrives.
 	backend->destroy ();	// it will self-destruct, when it has closed the process.
 }
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list