thus, our object-ref bookkeeping is correct at the end
(no more warnings for >1 refcounts for device, conf, acc_mgr)
pmo-trunk-r3720
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));
- _singletons = NULL;
if (_account_store) {
modest_runtime_verify_object_last_ref(_account_store,"");
_account_store = NULL;
}
+ modest_runtime_verify_object_last_ref(_singletons,"");
+ g_object_unref(G_OBJECT(_singletons));
+ _singletons = NULL;
+
if (_sig_handlers) {
modest_signal_mgr_disconnect_all_and_destroy (_sig_handlers);