libuwac/window: Fix memory leak / SIGBUS
authorSascha Wessel <sascha.wessel@aisec.fraunhofer.de>
Sun, 26 Apr 2020 05:53:06 +0000 (07:53 +0200)
committerakallabeth <akallabeth@posteo.net>
Tue, 5 May 2020 05:46:09 +0000 (07:46 +0200)
commita74d5b630c962ba89630f65c3d2f2a498581d061
treeab687ef61d87789264c01050389524b42c494d19
parent64253137762b4a6c4df22e98b82e1fc4a0f8b3bf
libuwac/window: Fix memory leak / SIGBUS

`UwacWindowShmAllocBuffers()` allocates memory with `mmap` and never frees it
resulting in SIGBUS errors and running out of memory after some time.

Adding a corresponding `munmap` fixes this issue.
uwac/libuwac/uwac-priv.h
uwac/libuwac/uwac-window.c