From 9d999fb89f36a1341f7013efc753d53d1abda49f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 19 Dec 2009 13:51:12 -0500 Subject: [PATCH] Properly free damage events This was reported in bug 605008 --- gdk/gdkevents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 90e16d7bd8..1b89f682f5 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -471,6 +471,7 @@ gdk_event_copy (const GdkEvent *event) break; case GDK_EXPOSE: + case GDK_DAMAGE: if (event->expose.region) new_event->expose.region = gdk_region_copy (event->expose.region); break; @@ -548,6 +549,7 @@ gdk_event_free (GdkEvent *event) break; case GDK_EXPOSE: + case GDK_DAMAGE: if (event->expose.region) gdk_region_destroy (event->expose.region); break;