[commit] r1910 - trunk/GME/Search

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri Apr 20 11:21:04 CDT 2012


Author: ksmyth
Date: Fri Apr 20 11:21:04 2012
New Revision: 1910

Log:
Fix crash on Search

Modified:
   trunk/GME/Search/SearchDlg.cpp

Modified: trunk/GME/Search/SearchDlg.cpp
==============================================================================
--- trunk/GME/Search/SearchDlg.cpp	Fri Apr 20 11:20:52 2012	(r1909)
+++ trunk/GME/Search/SearchDlg.cpp	Fri Apr 20 11:21:04 2012	(r1910)
@@ -46,9 +46,6 @@
 
 , m_chkSplSearch(FALSE)
 {
-    //create an empty IMgaFCOs list. it gets filled by the searchbutton
-    //and emptied by RemoveAll(), cleaned up by RemoveZombies()
-    COMTHROW(results.CoCreateInstance(L"Mga.MgaFCOs"));
 }
 
 void CSearchDlg::DoDataExchange(CDataExchange* pDX)
@@ -292,6 +289,8 @@
         }
 
 
+		if (results == NULL)
+			COMTHROW(results.CoCreateInstance(L"Mga.MgaFCOs"));
         CSearch searchGME(inp);
         searchGME.Search(rootInput, ccpObjectsInTerr, specialSearchFCO,results,&m_pgsSearch);
         //		AfxMessageBox(_T("Finished Searching"));


More information about the gme-commit mailing list