changeset 27831:7ee833540b25

Let's just call this after the switch statement...
author Mark Doliner <mark@kingant.net>
date Wed, 05 Aug 2009 01:20:45 +0000
parents f6dab0e7a817
children 94d7701a242e
files libpurple/protocols/yahoo/util.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);