# HG changeset patch # User Andreas Monitzer # Date 1184069276 0 # Node ID 7cffeebc301c4356c47aa886719dc2b34d054108 # Parent ca20c706ee5065e850606f5182f65f5b2ada638b Fixed a memory leak. diff -r ca20c706ee50 -r 7cffeebc301c libpurple/util.c --- a/libpurple/util.c Tue Jul 10 12:06:41 2007 +0000 +++ b/libpurple/util.c Tue Jul 10 12:07:56 2007 +0000 @@ -1467,6 +1467,8 @@ if(!src) xhtml = g_string_append(xhtml, alt->str); } + g_string_free(alt, TRUE); + g_string_free(src, TRUE); continue; } if(!g_ascii_strncasecmp(c, "' || *(c+2) == ' ')) {