Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(b51f539): Fix memory leak when the buffer is destroyed at …
…view-backend-exportable-fdo-egl Since commit b51f539 there is a memory leak each time the wl_resource is destroyed. This can be easily reproduced by repeteadly switching full-screen on/off (pressing F11 key) with Cog on Weston. The memory leak is caused because since b51f539 the wpe_fdo_egl_exported_image object is not cleaned anymore on the bufferDestroyListenerCallback callback. Commit cb6b86a fixed the leak but introduced crashes on some cases, so it was reverted. This is a new attempt at fixing this leak, this adds safeguards to ensure that the image object is not cleaned twice or with the wrong exported status. Related-to: #73 #175 #176 #178 Related-to: Igalia/cog#538 (cherry picked from commit 5b1c5e4)
- Loading branch information