forked from 12to11/12to11
Fix crash during subsurface destruction
* subcompositor.c (ViewUnparent): Don't consider view as attached if there is no subcompositor.
This commit is contained in:
parent
6f3941866a
commit
b8d26761c1
1 changed files with 2 additions and 2 deletions
|
@ -1113,7 +1113,7 @@ ViewUnparent (View *child)
|
|||
attached = (ViewVisibilityState (child, &mapped)
|
||||
&& mapped);
|
||||
|
||||
if (attached)
|
||||
if (attached && child->subcompositor)
|
||||
{
|
||||
/* Init the damage region. */
|
||||
pixman_region32_init (&damage);
|
||||
|
@ -1178,7 +1178,7 @@ ViewUnparent (View *child)
|
|||
#endif
|
||||
}
|
||||
|
||||
if (attached)
|
||||
if (attached && child->subcompositor)
|
||||
/* Finalize the damage region. */
|
||||
pixman_region32_fini (&damage);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue