Commit 1243d348 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

compositor: add error trap in free_win

It seems that picture might be destroyed with window if it is
created by passing window id as drawable to XRenderCreatePicture.

Add error trap around XRenderFreePicture to avoid Metacity crash
with RenderBadPicture error.
parent 072f77b4
......@@ -1957,7 +1957,10 @@ free_win (MetaCompWindow *cw,
if (cw->picture)
meta_error_trap_push (display);
XRenderFreePicture (xdisplay, cw->picture);
meta_error_trap_pop (display, FALSE);
cw->picture = None;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment