# HG changeset patch # User Mark Doliner # Date 1249435245 0 # Node ID 7ee833540b2586ce564ee04fe52614ccae4a685f # Parent f6dab0e7a817cee156b61919ba8c019473209718 Let's just call this after the switch statement... diff -r f6dab0e7a817 -r 7ee833540b25 libpurple/protocols/yahoo/util.c --- a/libpurple/protocols/yahoo/util.c Wed Aug 05 01:13:12 2009 +0000 +++ b/libpurple/protocols/yahoo/util.c Wed Aug 05 01:20:45 2009 +0000 @@ -811,7 +811,6 @@ } g_string_append_printf(dest, "size=\"%d\" ", f->u.size); - fontattr_free(f); break; case FATYPE_FACE: if (!needendtag) { @@ -820,7 +819,6 @@ } g_string_append_printf(dest, "face=\"%s\" ", f->u.face); - fontattr_free(f); break; case FATYPE_JUNK: if (!needendtag) { @@ -829,7 +827,6 @@ } g_string_append(dest, f->u.junk); - fontattr_free(f); break; case FATYPE_COLOR: @@ -843,9 +840,9 @@ g_string_append_printf(dest, "\033[%sm", f->u.color); *colors = g_slist_prepend(*colors, g_strdup_printf("\033[%sm", f->u.color)); - fontattr_free(f); break; } + fontattr_free(f); } g_queue_free(ftattr);