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:
Cosimo Cecchi 2013-01-20 13:52:47 -05:00
parent 7d30e601de
commit 2d820defef

View File

@ -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);
}