mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
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:
parent
70bfb02fde
commit
7d67206734
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user