mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
GtkBuilder: Fix more GMenu leaks in the parser
This commit is contained in:
parent
6f0951845f
commit
c304a84f2c
@ -128,6 +128,7 @@ gtk_builder_menu_start_element (GMarkupParseContext *context,
|
||||
|
||||
if (id != NULL)
|
||||
_gtk_builder_add_object (state->parser_data->builder, id, G_OBJECT (menu));
|
||||
g_object_unref (menu);
|
||||
}
|
||||
|
||||
return;
|
||||
@ -148,6 +149,7 @@ gtk_builder_menu_start_element (GMarkupParseContext *context,
|
||||
|
||||
if (id != NULL)
|
||||
_gtk_builder_add_object (state->parser_data->builder, id, G_OBJECT (menu));
|
||||
g_object_unref (menu);
|
||||
}
|
||||
|
||||
return;
|
||||
@ -204,6 +206,7 @@ gtk_builder_menu_start_element (GMarkupParseContext *context,
|
||||
|
||||
if (id != NULL)
|
||||
_gtk_builder_add_object (state->parser_data->builder, id, G_OBJECT (menu));
|
||||
g_object_unref (menu);
|
||||
}
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user