[commit] r1649 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Oct 26 10:18:58 CDT 2011
Author: ksmyth
Date: Wed Oct 26 10:18:58 2011
New Revision: 1649
Log:
Fix reference counting if creating console fails
Modified:
trunk/GME/Gme/MainFrm.cpp
Modified: trunk/GME/Gme/MainFrm.cpp
==============================================================================
--- trunk/GME/Gme/MainFrm.cpp Wed Oct 26 10:18:47 2011 (r1648)
+++ trunk/GME/Gme/MainFrm.cpp Wed Oct 26 10:18:58 2011 (r1649)
@@ -179,7 +179,7 @@
// decrement the refcount, relying on the other components maintaining the correct refcounts
//this line is needed either in setGmeOleApp or here
- ULONG ul = mGmeOleApp->GetIDispatch(FALSE)->Release();
+ // ULONG ul = mGmeOleApp->GetIDispatch(FALSE)->Release();
//ul = mGmeOleApp->GetIDispatch(FALSE)->Release(); //decrement the refcount to 1
// later when a project is opened the "mGmeOleApp" will be registered as a client of the "MgaProject", thus
@@ -210,7 +210,7 @@
m_console.SetGMEApp( 0 );
//this line is needed either in setGmeOleApp or here
- //mGmeOleApp->GetIDispatch(FALSE)->Release();
+ mGmeOleApp->GetIDispatch(FALSE)->Release();
// make sure
mGmeOleApp = 0;
More information about the gme-commit
mailing list