projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/widgets/modest-gtkhtml-msg-view.c:
[modest]
/
src
/
modest-runtime.c
diff --git
a/src/modest-runtime.c
b/src/modest-runtime.c
index
8eda572
..
568fb46
100644
(file)
--- a/
src/modest-runtime.c
+++ b/
src/modest-runtime.c
@@
-86,9
+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);
return TRUE; /* uninit maybe called if runtime_init failed */
g_return_val_if_fail (MODEST_IS_SINGLETONS(_singletons), FALSE);
-
+
g_debug ("%s: cleaning up", __FUNCTION__);
g_debug ("%s: cleaning up", __FUNCTION__);
+ if (_sig_handlers) {
+ modest_signal_mgr_disconnect_all_and_destroy (_sig_handlers);
+ _sig_handlers = NULL;
+ }
+
+ g_debug ("%s: cleaned up signal manager", __FUNCTION__);
+
MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,"");
g_object_unref(_singletons);
_singletons = NULL;
MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(_singletons,"");
g_object_unref(_singletons);
_singletons = NULL;
@@
-104,11
+111,6
@@
modest_runtime_uninit (void)
g_debug ("%s: cleaned up the account store", __FUNCTION__);
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__);
g_debug ("%s: all cleaned up", __FUNCTION__);
@@
-124,6
+126,13
@@
modest_runtime_get_account_mgr (void)
return modest_singletons_get_account_mgr (_singletons);
}
return modest_singletons_get_account_mgr (_singletons);
}
+TnyStreamCache*
+modest_runtime_get_images_cache (void)
+{
+ g_return_val_if_fail (_singletons, NULL);
+ return modest_singletons_get_images_cache (_singletons);
+}
+
ModestEmailClipboard*
modest_runtime_get_email_clipboard (void)
{
ModestEmailClipboard*
modest_runtime_get_email_clipboard (void)
{
@@
-230,7
+239,7
@@
modest_runtime_get_send_queue (TnyTransportAccount *account,
g_hash_table_insert (send_queue_cache,
g_object_ref (account),
g_hash_table_insert (send_queue_cache,
g_object_ref (account),
- g_object_ref (send_queue));
+ send_queue);
}
}
}
}