[gtk+/native-layout] Properly free damage events



commit 4bc8dcede8ca12e259b4b427f899adc5e2818479
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 19 13:51:12 2009 -0500

    Properly free damage events
    
    This was reported in bug 605008

 gdk/gdkevents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 90e16d7..1b89f68 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]