[Mobies-commit] [commit] r3912 - GReAT/trunk/Libraries/RTT

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Thu Oct 6 11:38:58 CDT 2011


Author: ksmyth
Date: Thu Oct  6 11:38:58 2011
New Revision: 3912

Log:
Fix for MgaProject not calling CoFreeUnusedLibraries (GMESRC r1561, GME-371). Static variables are evil.

Modified:
   GReAT/trunk/Libraries/RTT/RTTGenerator.cpp

Modified: GReAT/trunk/Libraries/RTT/RTTGenerator.cpp
==============================================================================
--- GReAT/trunk/Libraries/RTT/RTTGenerator.cpp	Tue Oct  4 18:14:18 2011	(r3911)
+++ GReAT/trunk/Libraries/RTT/RTTGenerator.cpp	Thu Oct  6 11:38:58 2011	(r3912)
@@ -69,6 +69,7 @@
 		}
 		_rttdn->CloseWithUpdate();
 		delete _rttdn, _rttdn=0;
+		_currRule = RTT::ExecuteRule::Cast(Udm::null);
 	}
 }
 
@@ -99,7 +100,11 @@
 
 void RTTGenerator::generateRule(int id, const std::string &name)
 {
-	if(!_rttdn) return;
+	if(!_rttdn)
+	{
+		_currRule = RTT::ExecuteRule::Cast(Udm::null);
+		return;
+	}
 	RTT::ExecuteRule rule = RTT::ExecuteRule::Create(_rttRoot);
 	rule.uniqueObjId() = id;
 	rule.name() = name;


More information about the Mobies-commit mailing list