Let's just call this after the switch statement...

Wed, 05 Aug 2009 01:20:45 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Wed, 05 Aug 2009 01:20:45 +0000
changeset 28107
8e7bfd184ca2
parent 28106
686088ceb2d1
child 28108
3ad6f3cb7362

Let's just call this after the switch statement...

libpurple/protocols/yahoo/util.c file | annotate | diff | comparison | revisions
--- 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);

mercurial