pidgin: 54d606cd: Let's just call this after the switch st...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Aug 4 21:27:40 EDT 2009


-----------------------------------------------------------------
Revision: 54d606cdecbc944d941827c87fd5de7c5396cbce
Ancestor: 91689600f61152ac853f84690c6ba65d244f7899
Author: markdoliner at pidgin.im
Date: 2009-08-05T01:20:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/54d606cdecbc944d941827c87fd5de7c5396cbce

Modified files:
        libpurple/protocols/yahoo/util.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/util.c	a8bc1bc2d49d17ad52935f7db790fa42553d891e
+++ libpurple/protocols/yahoo/util.c	3b5fb040d83b95ad19527ffcb954ede41cbbe7ee
@@ -811,7 +811,6 @@ static void _parse_font_tag(const char *
 						}
 
 						g_string_append_printf(dest, "size=\"%d\" ", f->u.size);
-						fontattr_free(f);
 						break;
 					case FATYPE_FACE:
 						if (!needendtag) {
@@ -820,7 +819,6 @@ static void _parse_font_tag(const char *
 						}
 
 						g_string_append_printf(dest, "face=\"%s\" ", f->u.face);
-						fontattr_free(f);
 						break;
 					case FATYPE_JUNK:
 						if (!needendtag) {
@@ -829,7 +827,6 @@ static void _parse_font_tag(const char *
 						}
 
 						g_string_append(dest, f->u.junk);
-						fontattr_free(f);
 						break;
 
 					case FATYPE_COLOR:
@@ -843,9 +840,9 @@ static void _parse_font_tag(const char *
 						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);


More information about the Commits mailing list