summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Aurich <darkrain42@pidgin.im>2009-04-12 21:52:37 +0000
committerPaul Aurich <darkrain42@pidgin.im>2009-04-12 21:52:37 +0000
commitd4f01e557f43f2c3778ed8124ca1a9a1b96ae5ff (patch)
tree39c2768d403b3ba396438b5d5b24856a14b42721
parent4f9cf54895589c79d0e7bab19e8e0fccf8259593 (diff)
downloadpidgin-d4f01e557f43f2c3778ed8124ca1a9a1b96ae5ff.tar.gz
Don't leak GdkColor*s in PidginBlistThemes
-rw-r--r--pidgin/gtkblist-theme.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pidgin/gtkblist-theme.c b/pidgin/gtkblist-theme.c
index 86ab512420..483da12cf2 100644
--- a/pidgin/gtkblist-theme.c
+++ b/pidgin/gtkblist-theme.c
@@ -245,13 +245,17 @@ pidgin_blist_theme_finalize(GObject *obj)
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 @@ pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, GdkColor *color
priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
+ g_free(priv->bgcolor);
priv->bgcolor = color;
}
@@ -626,6 +631,7 @@ pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, GdkCol
priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
+ g_free(priv->expanded_color);
priv->expanded_color = color;
}
@@ -651,6 +657,7 @@ pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, GdkCo
priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
+ g_free(priv->collapsed_color);
priv->collapsed_color = color;
}
@@ -676,6 +683,7 @@ pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, GdkColor *color)
priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
+ g_free(priv->contact_color);
priv->contact_color = color;
}