im.pidgin.pidgin: 2f819082d4689d1ed20d907f670103fbafba4ec0
sadrul at pidgin.im
sadrul at pidgin.im
Tue Dec 4 19:47:00 EST 2007
-----------------------------------------------------------------
Revision: 2f819082d4689d1ed20d907f670103fbafba4ec0
Ancestor: 14358a4f49f95a92cb09f1b80cb7e4e86cabdbc5
Author: sadrul at pidgin.im
Date: 2007-12-05T00:42:26
Branch: im.pidgin.pidgin
Modified files:
finch/libgnt/gntstyle.c
ChangeLog:
Plug a small leak.
-------------- next part --------------
============================================================
--- finch/libgnt/gntstyle.c 24349a177d65f52478d52b3a22354ed5f00f750e
+++ finch/libgnt/gntstyle.c a863480c1bddefa79acd8085fbeb0dddc7a62832
@@ -66,13 +66,15 @@ gnt_style_get_color(char *group, char *k
int fg = 0, bg = 0;
gsize n;
char **vals;
+ int ret = 0;
vals = gnt_style_get_string_list(group, key, &n);
if (vals && n == 2) {
fg = gnt_colors_get_color(vals[0]);
bg = gnt_colors_get_color(vals[1]);
- return gnt_color_add_pair(fg, bg);
+ ret = gnt_color_add_pair(fg, bg);
}
- return 0;
+ g_strfreev(vals);
+ return ret;
#else
return 0;
#endif
More information about the Commits
mailing list