Mercurial > pidgin
diff src/prefs.c @ 5940:94ad4d45346a
[gaim-migrate @ 6380]
memleak fixen
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 22 Jun 2003 16:27:43 +0000 |
parents | 96e5b32e75ad |
children | 90d0849abd3c |
line wrap: on
line diff
--- a/src/prefs.c Sat Jun 21 13:35:23 2003 +0000 +++ b/src/prefs.c Sun Jun 22 16:27:43 2003 +0000 @@ -796,7 +796,8 @@ static void prefs_end_element_handler(GMarkupParseContext *context, const gchar *element_name, gpointer user_data, GError **error) { - if(!strcmp(element_name, "pref")) { + if(prefs_stack && !strcmp(element_name, "pref")) { + g_free(prefs_stack->data); prefs_stack = g_list_delete_link(prefs_stack, prefs_stack); } }