pidgin/gtkconv.c

changeset 32602
d27b5a25aca9
parent 32588
b0ce9232396b
child 32612
152caf3b6b63
equal deleted inserted replaced
32601:36daedfec84a 32602:d27b5a25aca9
5591 gtkconv->unseen_state = PIDGIN_UNSEEN_NONE; 5591 gtkconv->unseen_state = PIDGIN_UNSEEN_NONE;
5592 gtkconv->unseen_count = 0; 5592 gtkconv->unseen_count = 0;
5593 theme = purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/theme"), "conversation"); 5593 theme = purple_theme_manager_find_theme(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/theme"), "conversation");
5594 if (!theme) 5594 if (!theme)
5595 theme = purple_theme_manager_find_theme("Default", "conversation"); 5595 theme = purple_theme_manager_find_theme("Default", "conversation");
5596 gtkconv->theme = PIDGIN_CONV_THEME(theme); 5596 gtkconv->theme = PIDGIN_CONV_THEME(g_object_ref(theme));
5597 gtkconv->last_flags = 0; 5597 gtkconv->last_flags = 0;
5598 5598
5599 if (conv_type == PURPLE_CONV_TYPE_IM) { 5599 if (conv_type == PURPLE_CONV_TYPE_IM) {
5600 gtkconv->u.im = g_malloc0(sizeof(PidginImPane)); 5600 gtkconv->u.im = g_malloc0(sizeof(PidginImPane));
5601 } else if (conv_type == PURPLE_CONV_TYPE_CHAT) { 5601 } else if (conv_type == PURPLE_CONV_TYPE_CHAT) {
5795 g_list_free(gtkconv->send_history); 5795 g_list_free(gtkconv->send_history);
5796 5796
5797 if (gtkconv->attach.timer) { 5797 if (gtkconv->attach.timer) {
5798 g_source_remove(gtkconv->attach.timer); 5798 g_source_remove(gtkconv->attach.timer);
5799 } 5799 }
5800
5801 g_object_unref(gtkconv->theme);
5800 5802
5801 g_free(gtkconv); 5803 g_free(gtkconv);
5802 } 5804 }
5803 5805
5804 5806

mercurial