aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c3
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 (