summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>1999-01-06 05:19:15 +0000
committerGeorge Lebl <jirka@src.gnome.org>1999-01-06 05:19:15 +0000
commit234d762ec3b66191f5178d0c6a39fab01ea68506 (patch)
treed55a0f14423ce472aa3c4525f661030e90772027 /gtk/gtkmenuitem.c
parent52601eae08db7abbebf5aea50727b887bc49b700 (diff)
downloadgtk+-234d762ec3b66191f5178d0c6a39fab01ea68506.tar.gz
free the event that was returned to us by gtk_get_current_event
Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the event that was returned to us by gtk_get_current_event
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 1431210670..a42893cd4e 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -545,6 +545,7 @@ gtk_real_menu_item_select (GtkItem *item)
menu_item);
else
gtk_menu_item_select_timeout (menu_item);
+ if(event) gdk_event_free(event);
}
gtk_widget_set_state (GTK_WIDGET (menu_item), GTK_STATE_PRELIGHT);
@@ -577,6 +578,7 @@ gtk_real_menu_item_deselect (GtkItem *item)
etime = event ? gdk_event_get_time (event) : GDK_CURRENT_TIME;
if (etime > last_submenu_deselect_time)
last_submenu_deselect_time = etime;
+ if(event) gdk_event_free(event);
}
gtk_widget_set_state (GTK_WIDGET (menu_item), GTK_STATE_NORMAL);