browser-plugin: Fix leak in plugin_enable_extension
https://bugzilla.gnome.org/show_bug.cgi?id=668541
This commit is contained in:
parent
f6508b51a2
commit
c6e924f788
@ -457,7 +457,10 @@ plugin_enable_extension (PluginObject *obj,
|
|||||||
{
|
{
|
||||||
gchar *uuid_str = g_strndup (uuid.UTF8Characters, uuid.UTF8Length);
|
gchar *uuid_str = g_strndup (uuid.UTF8Characters, uuid.UTF8Length);
|
||||||
if (!uuid_is_valid (uuid_str))
|
if (!uuid_is_valid (uuid_str))
|
||||||
return FALSE;
|
{
|
||||||
|
g_free (uuid_str);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
g_dbus_proxy_call (obj->proxy,
|
g_dbus_proxy_call (obj->proxy,
|
||||||
(enabled ? "EnableExtension" : "DisableExtension"),
|
(enabled ? "EnableExtension" : "DisableExtension"),
|
||||||
|
Loading…
Reference in New Issue
Block a user