summaryrefslogtreecommitdiff
path: root/browser-plugin
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-01-25 01:26:47 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2012-01-25 19:02:08 -0500
commitc6e924f78863ee9d5e4957ce87d2af2cae77592e (patch)
treee6d8415a14fdd9a08a738f11fcd241dcfb95e624 /browser-plugin
parentf6508b51a2a4ba2f16743599aaed1417e1793203 (diff)
browser-plugin: Fix leak in plugin_enable_extension
https://bugzilla.gnome.org/show_bug.cgi?id=668541
Diffstat (limited to 'browser-plugin')
-rw-r--r--browser-plugin/browser-plugin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c
index 799d8637..de364d14 100644
--- a/browser-plugin/browser-plugin.c
+++ b/browser-plugin/browser-plugin.c
@@ -457,7 +457,10 @@ plugin_enable_extension (PluginObject *obj,
{
gchar *uuid_str = g_strndup (uuid.UTF8Characters, uuid.UTF8Length);
if (!uuid_is_valid (uuid_str))
- return FALSE;
+ {
+ g_free (uuid_str);
+ return FALSE;
+ }
g_dbus_proxy_call (obj->proxy,
(enabled ? "EnableExtension" : "DisableExtension"),