[commit] r1691 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Nov 16 15:56:23 CST 2011


Author: ksmyth
Date: Wed Nov 16 15:56:23 2011
New Revision: 1691

Log:
Fix crash with decorator destructors after terminating GDI+

Modified:
   trunk/GME/Gme/GMEApp.cpp

Modified: trunk/GME/Gme/GMEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEApp.cpp	Wed Nov 16 10:02:14 2011	(r1690)
+++ trunk/GME/Gme/GMEApp.cpp	Wed Nov 16 15:56:23 2011	(r1691)
@@ -569,6 +569,8 @@
 			TerminateProcess(GetCurrentProcess(), GetExceptionCode());
 		}
 	}
+	// KMS: need to unload decorators before closing GDI+: e.g. ~Facilities() does GDI+ ops
+	CoFreeUnusedLibraries();
 	// Closing GDI+
 	graphics.Uninitialize();
 	gdiplusStartupOutput.NotificationUnhook(gdiplusHookToken);


More information about the gme-commit mailing list