Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12043/src/classes
Modified Files:
MApplication.cpp
Log Message:
moved cleanup code to non-GUI MApp class
Index: MApplication.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MApplication.cpp,v
retrieving revision 1.294
retrieving revision 1.295
diff -b -u -2 -r1.294 -r1.295
--- MApplication.cpp 18 Jun 2004 01:52:41 -0000 1.294
+++ MApplication.cpp 7 Jul 2004 19:43:36 -0000 1.295
@@ -180,6 +180,18 @@
MAppBase::~MAppBase()
{
+ // if the program startup failed it could be not deleted before
+ if ( m_profile )
+ {
+ m_profile->DecRef();
+ m_profile = NULL;
+ }
+
+ Profile::DeleteGlobalConfig();
+
delete m_framesOkToClose;
+ MObjectRC::CheckLeaks();
+ MObject::CheckLeaks();
+
mApplication = NULL;
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates