diff pidgin/gtkblist-theme-loader.c @ 26632:7f9443c31101

Fix some copy/paste errors in PidginBlistThemeLoader (was leaking online->color)
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Apr 2009 21:53:41 +0000
parents 0c7b74fc558e
children 548871664d3b
line wrap: on
line diff
--- a/pidgin/gtkblist-theme-loader.c	Sun Apr 12 21:52:37 2009 +0000
+++ b/pidgin/gtkblist-theme-loader.c	Sun Apr 12 21:53:41 2009 +0000
@@ -172,15 +172,15 @@
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "offline_text")) != NULL))) {
 		offline->font = g_strdup(xmlnode_get_attrib(sub_sub_node, "font"));
 		if(gdk_color_parse(temp = xmlnode_get_attrib(sub_sub_node, "color"), &color))
-			online->color = g_strdup(temp);
-		else online->color = g_strdup(DEFAULT_TEXT_COLOR);
+			offline->color = g_strdup(temp);
+		else offline->color = g_strdup(DEFAULT_TEXT_COLOR);
 	}
 
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "idle_text")) != NULL))) {
 		idle->font = g_strdup(xmlnode_get_attrib(sub_sub_node, "font"));
 		if(gdk_color_parse(temp = xmlnode_get_attrib(sub_sub_node, "color"), &color))
 			idle->color = g_strdup(temp);
-		else online->color = g_strdup(DEFAULT_TEXT_COLOR);
+		else idle->color = g_strdup(DEFAULT_TEXT_COLOR);
 	}
 
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "message_text")) != NULL))) {