diff options
author | JP Rosevear <jpr@ximian.com> | 2004-01-07 02:21:11 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-01-07 02:21:11 +0800 |
commit | 0651968c803dfcb75c401ddf425a34633637deb0 (patch) | |
tree | 717b2edc2cea414b49e150a78824ac238df14fde /widgets/text | |
parent | e2a832a05635c0c5d9c1e6011f8812b7bb7d2a41 (diff) | |
download | gsoc2013-evolution-0651968c803dfcb75c401ddf425a34633637deb0.tar.gz gsoc2013-evolution-0651968c803dfcb75c401ddf425a34633637deb0.tar.zst gsoc2013-evolution-0651968c803dfcb75c401ddf425a34633637deb0.zip |
free event (e_text_do_popup): copy the event so we have good data
2004-01-06 JP Rosevear <jpr@ximian.com>
* gal/e-text/e-text.c (popup_targets_received): free event
(e_text_do_popup): copy the event so we have good data
Fixes #51956
svn path=/trunk/; revision=24071
Diffstat (limited to 'widgets/text')
-rw-r--r-- | widgets/text/e-text.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index d68198507c..a9e24ddbe0 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2698,6 +2698,7 @@ popup_targets_received (GtkClipboard *clipboard, } g_object_unref (text); + gdk_event_free ((GdkEvent *)button); } static void @@ -2707,7 +2708,7 @@ e_text_do_popup (EText *text, GdkEventButton *button, int position) closure->text = text; g_object_ref (closure->text); - closure->button = button; + closure->button = (GdkEventButton *) gdk_event_copy ((GdkEvent *)button); closure->position = position; gtk_clipboard_request_contents ( |