gdkwindow: Plug memory leak

gdk_drawing_context_get_clip returns a newly allocated cairo_region_t,
so we have to destroy it.
This commit is contained in:
Timm Bäder 2017-02-27 15:33:45 +01:00
parent 7d85ffce33
commit e1592c599e

View File

@ -2428,9 +2428,13 @@ gdk_window_end_draw_frame (GdkWindow *window,
paint_context = gdk_drawing_context_get_paint_context (context);
if (paint_context)
{
cairo_region_t *clip = gdk_drawing_context_get_clip (context);
gdk_draw_context_end_frame (paint_context,
gdk_drawing_context_get_clip (context),
clip,
window->active_update_area);
cairo_region_destroy (clip);
}
else
{