pidgin: e70b24cc: Ref/unref the theme for a conversation.

qulogic at pidgin.im qulogic at pidgin.im
Sun Sep 25 16:25:43 EDT 2011


----------------------------------------------------------------------
Revision: e70b24cc167f4cda5898dce940d4fdaad4fb63b3
Parent:   246ce23ba85b41bf89269edfa8ec16583ad89fb3
Author:   qulogic at pidgin.im
Date:     09/25/11 01:47:54
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e70b24cc167f4cda5898dce940d4fdaad4fb63b3

Changelog: 

Ref/unref the theme for a conversation.

Changes against parent 246ce23ba85b41bf89269edfa8ec16583ad89fb3

  patched  pidgin/gtkconv.c

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	11233511399abe78a00d39fbebc8306da4b91d28
+++ pidgin/gtkconv.c	feb759f47ecbf46800ff4860d6c7b94930b67994
@@ -5593,7 +5593,7 @@ private_gtkconv_new(PurpleConversation *
 	theme = purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/theme"), "conversation");
 	if (!theme)
 		theme = purple_theme_manager_find_theme("Default", "conversation");
-	gtkconv->theme = PIDGIN_CONV_THEME(theme);
+	gtkconv->theme = PIDGIN_CONV_THEME(g_object_ref(theme));
 	gtkconv->last_flags = 0;
 
 	if (conv_type == PURPLE_CONV_TYPE_IM) {
@@ -5798,6 +5798,8 @@ pidgin_conv_destroy(PurpleConversation *
 		g_source_remove(gtkconv->attach.timer);
 	}
 
+	g_object_unref(gtkconv->theme);
+
 	g_free(gtkconv);
 }
 


More information about the Commits mailing list