applicationwindow: fix mem leak
In the error path, code is leaking a ref to a GVariant. https://bugzilla.gnome.org/show_bug.cgi?id=692203
This commit is contained in:
parent
7d30e601de
commit
2d820defef
@ -471,6 +471,10 @@ add_accel_closure (gpointer data,
|
||||
|
||||
gtk_accel_group_connect_by_path (window->priv->accels, accel_path, &closure->closure);
|
||||
}
|
||||
else if (parameter)
|
||||
{
|
||||
g_variant_unref (parameter);
|
||||
}
|
||||
|
||||
g_free (action_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user