X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-runtime.c;h=aa41989482aa1f35bac82f3a092735136f515f86;hp=66e34b2784c23262ba386e67dfd1c691bbb5ebcb;hb=444d56e917d8781e145aeac96576811fdaa17809;hpb=8eb87055216f549c737d2126f33d1fc913f2632d diff --git a/src/modest-runtime.c b/src/modest-runtime.c index 66e34b2..aa41989 100644 --- a/src/modest-runtime.c +++ b/src/modest-runtime.c @@ -46,6 +46,7 @@ #include #include #include +#include static ModestSingletons *_singletons = NULL; @@ -85,16 +86,16 @@ modest_runtime_uninit (void) return TRUE; /* uninit maybe called if runtime_init failed */ g_return_val_if_fail (MODEST_IS_SINGLETONS(_singletons), FALSE); - modest_runtime_verify_object_last_ref(_singletons,""); - g_object_unref(G_OBJECT(_singletons)); + + MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,""); + g_object_unref(_singletons); _singletons = NULL; if (_account_store) { - modest_runtime_verify_object_last_ref(_account_store,""); - g_object_unref(G_OBJECT(_account_store)); + MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_account_store,""); + g_object_unref(_account_store); _account_store = NULL; } - if (_sig_handlers) { modest_signal_mgr_disconnect_all_and_destroy (_sig_handlers); @@ -244,9 +245,10 @@ modest_runtime_get_debug_flags () static const GDebugKey debug_keys[] = { { "abort-on-warning", MODEST_RUNTIME_DEBUG_ABORT_ON_WARNING }, { "log-actions", MODEST_RUNTIME_DEBUG_LOG_ACTIONS }, - { "debug-objects", MODEST_RUNTIME_DEBUG_DEBUG_OBJECTS }, - { "debug-signals", MODEST_RUNTIME_DEBUG_DEBUG_SIGNALS }, - { "factory-settings", MODEST_RUNTIME_DEBUG_FACTORY_SETTINGS} + { "debug-objects", MODEST_RUNTIME_DEBUG_OBJECTS }, + { "debug-signals", MODEST_RUNTIME_DEBUG_SIGNALS }, + { "factory-settings", MODEST_RUNTIME_DEBUG_FACTORY_SETTINGS}, + { "debug-code", MODEST_RUNTIME_DEBUG_CODE} }; const gchar *str; static ModestRuntimeDebugFlags debug_flags = -1;