mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
menu: Don't leak check menu items
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774686
This commit is contained in:
parent
1dded6d633
commit
3a947fa318
@ -3056,6 +3056,8 @@ static void gtk_menu_measure (GtkWidget *widget,
|
||||
max_toggle_size = indicator_width;
|
||||
|
||||
gtk_widget_destroy (menu_item);
|
||||
g_object_ref_sink (menu_item);
|
||||
g_object_unref (menu_item);
|
||||
}
|
||||
|
||||
min_width += 2 * max_toggle_size + max_accel_width;
|
||||
|
Loading…
Reference in New Issue
Block a user