pidgin: 866c5b88: Don't leak GdkColor*s in PidginBlistThem...
paul at darkrain42.org
paul at darkrain42.org
Sun Apr 12 18:50:40 EDT 2009
-----------------------------------------------------------------
Revision: 866c5b885418ce4aaf24c6e4df72c3dc128e1ab4
Ancestor: 3aa40432680da4c7bc95e5f02c58e7779b1a3b1b
Author: paul at darkrain42.org
Date: 2009-04-12T21:52:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/866c5b885418ce4aaf24c6e4df72c3dc128e1ab4
Modified files:
pidgin/gtkblist-theme.c
ChangeLog:
Don't leak GdkColor*s in PidginBlistThemes
-------------- next part --------------
============================================================
--- pidgin/gtkblist-theme.c cf67e27d3d9f7c100e9405147094a3a4a371f24e
+++ pidgin/gtkblist-theme.c 51c11f5428b1b6281401316eb28c4d72bd2ba276
@@ -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(
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_backgrou
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_backgro
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(Pid
priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
+ g_free(priv->contact_color);
priv->contact_color = color;
}
More information about the Commits
mailing list