forked from AuroraMiddleware/gtk
Properly free damage events
This was reported in bug 605008
This commit is contained in:
parent
9e7c91bf83
commit
9d999fb89f
@ -471,6 +471,7 @@ gdk_event_copy (const GdkEvent *event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GDK_EXPOSE:
|
case GDK_EXPOSE:
|
||||||
|
case GDK_DAMAGE:
|
||||||
if (event->expose.region)
|
if (event->expose.region)
|
||||||
new_event->expose.region = gdk_region_copy (event->expose.region);
|
new_event->expose.region = gdk_region_copy (event->expose.region);
|
||||||
break;
|
break;
|
||||||
@ -548,6 +549,7 @@ gdk_event_free (GdkEvent *event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GDK_EXPOSE:
|
case GDK_EXPOSE:
|
||||||
|
case GDK_DAMAGE:
|
||||||
if (event->expose.region)
|
if (event->expose.region)
|
||||||
gdk_region_destroy (event->expose.region);
|
gdk_region_destroy (event->expose.region);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user