GtkBuilder: Don't leak a reference to constructed GMenus

_gtk_builder_add_object adds a reference, so we need to drop
our initial one.
This commit is contained in:
Matthias Clasen 2014-06-28 20:21:32 -04:00
parent 70bfb02fde
commit 7d67206734

View File

@ -375,6 +375,7 @@ _gtk_builder_menu_start (ParserData *parser_data,
menu = g_menu_new ();
_gtk_builder_add_object (state->parser_data->builder, id, G_OBJECT (menu));
gtk_builder_menu_push_frame (state, menu, NULL);
g_object_unref (menu);
}
}