# HG changeset patch # User Sadrul Habib Chowdhury # Date 1191299890 0 # Node ID e92c9987ba0d0e1c753510ebacc6da8fd39d3d2d # Parent fe77cc691f7821c1822710c5b762d03eb1f4cdd0 A small memory leak fix. diff -r fe77cc691f78 -r e92c9987ba0d libpurple/protocols/myspace/markup.c --- a/libpurple/protocols/myspace/markup.c Tue Oct 02 04:22:26 2007 +0000 +++ b/libpurple/protocols/myspace/markup.c Tue Oct 02 04:38:10 2007 +0000 @@ -444,7 +444,8 @@ *begin = g_strdup_printf("", MSIM_TEXT_UNDERLINE); *end = g_strdup(""); } else if (!purple_utf8_strcasecmp(root->name, "a")) { - const gchar *href, *link_text; + const gchar *href; + gchar *link_text; href = xmlnode_get_attrib(root, "href"); @@ -476,6 +477,7 @@ /* Sorry, kid. MySpace doesn't support you within tags. */ xmlnode_free(root->child); + g_free(link_text); root->child = NULL; *end = g_strdup("");