From e4578b15c33e4c41deda388834ffb5b9297ab976 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 17 Mar 2020 13:23:57 -0700 Subject: [PATCH] textview: use gdk_event_unref() Fixes #2520 --- gtk/gtktextview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 4d70729e06..62687d0f29 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -8085,7 +8085,7 @@ gtk_text_view_value_changed (GtkAdjustment *adjustment, if (gdk_event_get_event_type (current_event) == GDK_SCROLL) move_mark_to_pointer_and_scroll (text_view, "insert"); - g_object_unref (current_event); + gdk_event_unref (current_event); } } @@ -8652,7 +8652,7 @@ gtk_text_view_do_popup (GtkTextView *text_view, gtk_popover_popup (GTK_POPOVER (priv->popup_menu)); if (trigger_event && trigger_event != event) - g_object_unref (trigger_event); + gdk_event_unref (trigger_event); } static gboolean