[rkward-cvs] SF.net SVN: rkward: [2130] branches/KDE4_port/rkward/rbackend/rthread.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Oct 25 17:56:58 UTC 2007


Revision: 2130
          http://rkward.svn.sourceforge.net/rkward/?rev=2130&view=rev
Author:   tfry
Date:     2007-10-25 10:56:58 -0700 (Thu, 25 Oct 2007)

Log Message:
-----------
It is ok for current_command to become 0, but never point to a deleted command.
This would actually need to be fixed in the 0.4.x series as well, but only very rarely leads to problems,
and is not easily fixable, there.

Modified Paths:
--------------
    branches/KDE4_port/rkward/rbackend/rthread.cpp

Modified: branches/KDE4_port/rkward/rbackend/rthread.cpp
===================================================================
--- branches/KDE4_port/rkward/rbackend/rthread.cpp	2007-10-25 17:46:23 UTC (rev 2129)
+++ branches/KDE4_port/rkward/rbackend/rthread.cpp	2007-10-25 17:56:58 UTC (rev 2130)
@@ -125,6 +125,7 @@
 				checkObjectUpdatesNeeded (current_command->type () & (RCommand::User | RCommand::ObjectListUpdate));
 				processX11Events ();
 				RCommandStack::regular_stack->pop ();
+				current_command = 0;
 				notifyCommandDone (current_command);	// command may be deleted after this
 			}
 		
@@ -429,6 +430,7 @@
 				if (object_update_forced) checkObjectUpdatesNeeded (true);
 				processX11Events ();
 				reply_stack->pop ();
+				current_command = 0;
 				notifyCommandDone (current_command);	// command may be deleted after this
 			}
 		}


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