[GME-commit] GMESRC/GME/GMEActiveBrowser MgaContext.cpp,1.6,1.7

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Sat Jun 16 16:39:45 CDT 2007


Update of /project/gme-repository/GMESRC/GME/GMEActiveBrowser
In directory escher:/tmp/cvs-serv16496

Modified Files:
	MgaContext.cpp 
Log Message:
Fixing JIRA-154.
http://escher.isis.vanderbilt.edu/JIRA/browse/GME-154
::CreateContext() used Attach on a COM pointer which later was Release()-d, thus decreasing the total refcount value by one, confusing the MgaProject class.



CVS User: Zoltan Molnar, ISIS (zolmol)

Index: MgaContext.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/GMEActiveBrowser/MgaContext.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MgaContext.cpp	18 Nov 2002 20:09:00 -0000	1.6
--- MgaContext.cpp	16 Jun 2007 21:39:43 -0000	1.7
***************
*** 127,131 ****
  {
  	// Creating Project
! 	m_ccpProject.Attach((IMgaProject *) pMgaProject);
  	
  	// Creating Territory
--- 127,136 ----
  {
  	// Creating Project
! 	CComQIPtr<IMgaProject> _project( pMgaProject);
! 	m_ccpProject = _project;
! 	//m_ccpProject.Attach((IMgaProject *) pMgaProject);
! 	// previously was used Attach but this does not call AddRef
! 	// on m_ccpProject, although in CloseContext Release is used
! 	// this will fix the JIRA-
  	
  	// Creating Territory



More information about the GME-commit mailing list