[gtk+] gdkevents: Free motion events discarded by motion compression
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkevents: Free motion events discarded by motion compression
- Date: Sun, 1 May 2016 18:08:45 +0000 (UTC)
commit cb6b5e4017c9b2d420ac71ba287c3fa16a16e509
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 1 20:05:56 2016 +0200
gdkevents: Free motion events discarded by motion compression
Those should be freed together with their list link.
gdk/gdkevents.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 44d5013..9f31e27 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -295,6 +295,7 @@ _gdk_event_queue_handle_motion_compression (GdkDisplay *display)
while (pending_motions && pending_motions->next != NULL)
{
GList *next = pending_motions->next;
+ gdk_event_free (pending_motions->data);
display->queued_events = g_list_delete_link (display->queued_events,
pending_motions);
pending_motions = next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]