This adds a destroy listener on the SHM buffer provided by our client. It will unregister the frame notify listener in case our buffer is destroyed before the frame signal is emitted and thus avoid a memcpy to invalid memory.
Signed-off-by: Paul Kocialkowski paul.kocialkowski@bootlin.com