browser-plugin: Fix leak in plugin_enable_extension

https://bugzilla.gnome.org/show_bug.cgi?id=668541
This commit is contained in:
Jasper St. Pierre 2012-01-25 01:26:47 -05:00
parent f6508b51a2
commit c6e924f788

View File

@ -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"),