changeset 17625:7cffeebc301c

Fixed a memory leak.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 10 Jul 2007 12:07:56 +0000
parents ca20c706ee50
children bef1b9f6e449 d53aa2308727
files libpurple/util.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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, "<a", 2) && (*(c+2) == '>' || *(c+2) == ' ')) {