Wed, 05 Dec 2007 00:42:26 +0000
Plug a small leak.
| finch/libgnt/gntstyle.c | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/gntstyle.c Wed Dec 05 00:16:40 2007 +0000 +++ b/finch/libgnt/gntstyle.c Wed Dec 05 00:42:26 2007 +0000 @@ -66,13 +66,15 @@ 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