pidgin/pidgin

Fix tiny memleak when custom browser command doesn't work.
release-2.x.y
2014-01-12, Mark Doliner
0394d984580f
Parents 98f3f47f8382
Children fb25998221c2
Fix tiny memleak when custom browser command doesn't work.
This is new code since 2.10.7, so this leak doesn't exist in
the wild.
--- a/pidgin/gtknotify.c Sun Jan 12 18:02:19 2014 -0800
+++ b/pidgin/gtknotify.c Sun Jan 12 18:17:01 2014 -0800
@@ -1433,6 +1433,7 @@
purple_notify_error(NULL, NULL, _("Unable to open URL"),
_("The 'Manual' browser command has been "
"chosen, but no command has been set."));
+ g_free(uri_escaped);
return NULL;
}
@@ -1443,6 +1444,7 @@
"the 'Manual' browser command seems invalid."),
error ? error->message : NULL);
g_error_free(error);
+ g_free(uri_escaped);
return NULL;
}