src: Verify if the output is present 59/28259/5
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 12 Dec 2022 19:02:19 +0000 (21:02 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 14 Dec 2022 13:31:19 +0000 (13:31 +0000)
commit76fa1b83638310c23bf3ca952e4479499b8ecb43
treeb0e9b723f19cf957fa4b9935bad65e75015ddd38
parent79eac214d4866d840767b6a430c6168e55a214c0
src: Verify if the output is present

The output destroy handler will invalidate the weston output and with it
we're no longer have access to it when the shell client closes up. This
checks against the weston output to avoid an illegal memory access.

Still part of the hot-plug connector fixes.

Bug-AGL: SPEC-4625
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Reported-by: Detlev Casanova <detlev.casanova@collabora.com>
Change-Id: Ic4c389422057fa082aff7fdbbc13af0c16f7bbb6
src/desktop.c