X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-runtime.c;h=aa41989482aa1f35bac82f3a092735136f515f86;hb=955ef254370f3fcd1b1da15178cdf91086716087;hp=3d3843c4fc143cbe5739de8b82e754f79c293a33;hpb=0fb332b6dc8b4e67b7f13ab60563a4205b2be743;p=modest diff --git a/src/modest-runtime.c b/src/modest-runtime.c index 3d3843c..aa41989 100644 --- a/src/modest-runtime.c +++ b/src/modest-runtime.c @@ -87,17 +87,16 @@ modest_runtime_uninit (void) g_return_val_if_fail (MODEST_IS_SINGLETONS(_singletons), FALSE); + MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,""); + g_object_unref(_singletons); + _singletons = NULL; + if (_account_store) { MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_account_store,""); g_object_unref(_account_store); _account_store = NULL; } - MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,""); - g_object_unref(_singletons); - _singletons = NULL; - - if (_sig_handlers) { modest_signal_mgr_disconnect_all_and_destroy (_sig_handlers); _sig_handlers = NULL;