Properly free damage events

This was reported in bug 605008
This commit is contained in:
Matthias Clasen 2009-12-19 13:51:12 -05:00
parent 9e7c91bf83
commit 9d999fb89f

View File

@ -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;