* add some debugging statements when unitializing the runtime
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 15 Apr 2008 09:51:43 +0000 (09:51 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 15 Apr 2008 09:51:43 +0000 (09:51 +0000)
pmo-trunk-r4416

src/modest-runtime.c

index aa41989..9d8a368 100644 (file)
@@ -87,20 +87,30 @@ modest_runtime_uninit (void)
        
        g_return_val_if_fail (MODEST_IS_SINGLETONS(_singletons), FALSE);
        
+       g_debug ("%s: cleaning up", __FUNCTION__);
+
        MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,"");
        g_object_unref(_singletons);
        _singletons = NULL;
 
+       g_debug ("%s: cleaned up singletons", __FUNCTION__);
+
        if (_account_store) {
                MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_account_store,"");
                g_object_unref(_account_store);
                _account_store = NULL;
        }
+
+       g_debug ("%s: cleaned up the account store", __FUNCTION__);
+
        
        if (_sig_handlers) {
                modest_signal_mgr_disconnect_all_and_destroy (_sig_handlers);
                _sig_handlers = NULL;
        }
+
+       g_debug ("%s: all cleaned up", __FUNCTION__);
+
        
        return TRUE;
 }