compositor: Properly dispose of fullscreen views at shutdown 96/27596/1
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jun 2022 08:56:29 +0000 (11:56 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jun 2022 09:08:24 +0000 (12:08 +0300)
commitb4a52c732dbf3863bd22535077a2506538f9a8ce
treeeea792b5b66b75fbd0032b29cdb5451d05491ac8
parent1304d412eb2bcefd4733539213ecb9b6ca39a605
compositor: Properly dispose of fullscreen views at shutdown

While we can have multiple outputs, each with its own fullscreen view,
we have a layer-per-output hence we can't really call layer_fini()
in the output destruction as that what would result in an invalid
link access.

Handle those views destruction and with it, the fullscreen layer fini,
in the finalize bit where all others are handled as well.

This fixes a crash at shutdown, which could be seen when using multiple
outputs, and probably quite problematic when handling a restart.

Fixes: 43bdf9a42bac33df174d6ac7ff1ab2e15441c7b5

Bug-AGL: SPEC-4420
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I773890a24ad8ca2556c1d4ddda7f37ebae02c9de
src/compositor.c
src/shell.c