[Orxonox-commit 3623] r8308 - code/branches/kicklib2/src/libraries/core/command

rgrieder at orxonox.net rgrieder at orxonox.net
Fri Apr 22 22:32:43 CEST 2011


Author: rgrieder
Date: 2011-04-22 22:32:43 +0200 (Fri, 22 Apr 2011)
New Revision: 8308

Modified:
   code/branches/kicklib2/src/libraries/core/command/TclThreadManager.cc
Log:
Delete standard Tcl interpreter bundle when closing the application. However do not do this for bundles of separate threads.

Modified: code/branches/kicklib2/src/libraries/core/command/TclThreadManager.cc
===================================================================
--- code/branches/kicklib2/src/libraries/core/command/TclThreadManager.cc	2011-04-22 20:23:04 UTC (rev 8307)
+++ code/branches/kicklib2/src/libraries/core/command/TclThreadManager.cc	2011-04-22 20:32:43 UTC (rev 8308)
@@ -115,8 +115,9 @@
     */
     TclThreadManager::~TclThreadManager()
     {
+        delete this->interpreterBundles_[0];
         delete this->interpreterBundlesMutex_;
-//        delete this->mainInterpreterMutex_; // <-- temporary disabled to avoid crash if a thread is still actively queriyng
+//        delete this->mainInterpreterMutex_; // <-- temporarily disabled to avoid crash if a thread is still actively querying
         delete this->messageQueue_;
     }
 




More information about the Orxonox-commit mailing list