browser-plugin: Fix enable/disable
This code was broken at the last minute, and an accidentally stale plugin copy kept it untested. https://bugzilla.gnome.org/show_bug.cgi?id=676837
This commit is contained in:
parent
985641cc2e
commit
ad6d986172
@ -515,9 +515,9 @@ plugin_enable_extension (PluginObject *obj,
|
||||
if (enabled)
|
||||
{
|
||||
new_uuids = g_new (const gchar *, length + 2); /* New key, NULL */
|
||||
memcpy (new_uuids, uuids, length);
|
||||
new_uuids[length - 2] = uuid_str;
|
||||
new_uuids[length - 1] = NULL;
|
||||
memcpy (new_uuids, uuids, length * sizeof (*new_uuids));
|
||||
new_uuids[length] = uuid_str;
|
||||
new_uuids[length + 1] = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user