Skip to content
Commit f22ca6ae authored by Marius Vlad's avatar Marius Vlad
Browse files

backend-vnc: Remove the display when output is disabled



This prevents a potential abort yelling:

PANIC: ../subprojects/neatvnc/src/server.c: 2245: Multiple displays are not implemented. Aborting!

which happens because we never unregister the output, a mirror function
for nvnc_add_display().

Further more, we migrate nvc_close() to vnc_destroy() and check for
a valid output in vnc_client_cleanup(). Having a single caller in
vnc_shutdown() (which was migrated) we removed that entirely. Necessary
to avoid a use-after-free caused by nvc_close().

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent 376b3952
Pipeline #1217021 passed with stages
in 4 minutes and 32 seconds
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