changeset 26549:50274819a754

Don't leak GdkColor*s in PidginBlistThemes
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Apr 2009 21:52:37 +0000
parents 3e274d6fcfaa
children 7f9443c31101
files pidgin/gtkblist-theme.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist-theme.c	Sun Apr 12 21:30:33 2009 +0000
+++ b/pidgin/gtkblist-theme.c	Sun Apr 12 21:52:37 2009 +0000
@@ -245,13 +245,17 @@
 	priv = PIDGIN_BLIST_THEME_GET_PRIVATE(obj);
 
 	/* Buddy List */
+	g_free(priv->bgcolor);
 	g_free(priv->layout);
 
 	/* Group */
+	g_free(priv->expanded_color);
 	free_font_and_color(priv->expanded);
+	g_free(priv->collapsed_color);
 	free_font_and_color(priv->collapsed);
 
 	/* Buddy */
+	g_free(priv->contact_color);
 	free_font_and_color(priv->contact);
 	free_font_and_color(priv->online);
 	free_font_and_color(priv->away);
@@ -589,6 +593,7 @@
 
 	priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
 
+	g_free(priv->bgcolor);
 	priv->bgcolor = color;
 }
 
@@ -626,6 +631,7 @@
 
 	priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
 
+	g_free(priv->expanded_color);
 	priv->expanded_color = color;
 }
 
@@ -651,6 +657,7 @@
 
 	priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
 
+	g_free(priv->collapsed_color);
 	priv->collapsed_color = color;
 }
 
@@ -676,6 +683,7 @@
 
 	priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
 
+	g_free(priv->contact_color);
 	priv->contact_color = color;
 }