diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-07-24 19:50:13 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-07-24 19:50:13 -0400 |
commit | 8b6dc483557a2b088893ce9b2c2b9c053df8a99e (patch) | |
tree | 850cecaf7efef665b4e9cc8a5ad9a1503f8f7db1 /examples/shared.c | |
parent | 13f3c69ec6fc36f04f60a6b3593320ffcbd41d18 (diff) |
bugfix: add null check on output gbm on pageflip
The gbm for the output might be null for the pageflip in the case that
the output has been disconnected. The gbm might be set to null by
wlr_drm_output_cleanup() in this case.
If the output is cleaned up before the pageflip, then a double free
will crash the compositor on the call to gbm_surface_release_buffer()
in the pageflip handler. The outputs buffer object bo[1] will point to
invalid memory.
Diffstat (limited to 'examples/shared.c')
0 files changed, 0 insertions, 0 deletions