[gtk] menu: Remove an unnecessary gtk_widget_destroy() call
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] menu: Remove an unnecessary gtk_widget_destroy() call
- Date: Sat, 18 Aug 2018 18:57:02 +0000 (UTC)
commit 10439aaefe9c415435289066e8b322dd003d2d9a
Author: Timm Bäder <mail baedert org>
Date: Sun Aug 5 12:18:06 2018 +0200
menu: Remove an unnecessary gtk_widget_destroy() call
The unref will already properly free the menu item's resources.
gtk/gtkmenu.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 1fdecc2a51..700ec5f36b 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -2709,7 +2709,6 @@ static void gtk_menu_measure (GtkWidget *widget,
NULL, NULL);
max_toggle_size = indicator_width;
- gtk_widget_destroy (menu_item);
g_object_ref_sink (menu_item);
g_object_unref (menu_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]