[gtk/scroll-compression-leak] Fix a leak in scroll event compression
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/scroll-compression-leak] Fix a leak in scroll event compression
- Date: Thu, 6 Aug 2020 23:32:52 +0000 (UTC)
commit 0c82aa314c33f72c0cb577dc92e3306c5341ab65
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 6 19:31:08 2020 -0400
Fix a leak in scroll event compression
We were leaking the last event in a sequence
of scroll events.
gdk/gdkevents.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index c6ee0decb8..67a536462c 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -702,6 +702,8 @@ gdk_event_queue_handle_scroll_compression (GdkDisplay *display)
g_queue_delete_link (&display->queued_events, scrolls);
g_queue_push_tail (&display->queued_events, event);
+
+ gdk_event_unref (old_event);
}
if (g_queue_get_length (&display->queued_events) == 1 &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]