From df72fd00377a9aaed2b532c84eb0c25383991b72 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 18 Feb 2011 11:00:26 +0100 Subject: empathy-chat: ensure that the theme manager stay alive --- src/empathy-chat.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/empathy-chat.c b/src/empathy-chat.c index 195f2ebf2..73d8ce87c 100644 --- a/src/empathy-chat.c +++ b/src/empathy-chat.c @@ -31,6 +31,8 @@ #include #include + +#include #include #include "empathy-chat-manager.h" @@ -96,6 +98,7 @@ main (int argc, #endif GError *error = NULL; EmpathyPresenceManager *presence_mgr; + EmpathyThemeManager *theme_mgr; gint retval; /* Init */ @@ -137,6 +140,9 @@ main (int argc, /* Setting up Idle */ presence_mgr = empathy_presence_manager_dup_singleton (); + /* Keep the theme manager alive as it does some caching */ + theme_mgr = empathy_theme_manager_dup_singleton (); + if (g_getenv ("EMPATHY_PERSIST") != NULL) { DEBUG ("Disable timer"); @@ -155,6 +161,7 @@ main (int argc, g_object_unref (app); g_object_unref (presence_mgr); + g_object_unref (theme_mgr); tp_clear_object (&chat_mgr); #ifdef ENABLE_DEBUG -- cgit v1.2.3