Mercurial > pidgin.yaz
changeset 21780:350c93aa44d3
Plug a small leak.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 05 Dec 2007 00:42:26 +0000 |
parents | 7697b246fbcc |
children | 6a287408bc54 |
files | finch/libgnt/gntstyle.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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