[commit] r1252 - trunk/GME/Mga

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Apr 5 17:33:03 CDT 2011


Author: ksmyth
Date: Tue Apr  5 17:33:01 2011
New Revision: 1252

Log:
Fix GME-350: smart pointer abuse led to memory leak

Modified:
   trunk/GME/Mga/MgaProject.cpp

Modified: trunk/GME/Mga/MgaProject.cpp
==============================================================================
--- trunk/GME/Mga/MgaProject.cpp	Tue Apr  5 15:34:23 2011	(r1251)
+++ trunk/GME/Mga/MgaProject.cpp	Tue Apr  5 17:33:01 2011	(r1252)
@@ -1052,7 +1052,7 @@
 // MUST SUCCEED
 		CComPtr< CMgaTerritory > ster;
 		CreateComObject(ster);
-		ster->coreterr = tt.Detach();
+		ster->coreterr = tt;
 		ster->mgaproject = this;; 
 		allterrs.push_front(ster);
 		ster->handler=sink;


More information about the gme-commit mailing list