diff --git a/src/view-backend-exportable-fdo-egl-private.h b/src/view-backend-exportable-fdo-egl-private.h index e19c177..0e6caba 100644 --- a/src/view-backend-exportable-fdo-egl-private.h +++ b/src/view-backend-exportable-fdo-egl-private.h @@ -33,7 +33,6 @@ struct wpe_fdo_egl_exported_image { EGLImageKHR eglImage { nullptr }; uint32_t width { 0 }; uint32_t height { 0 }; - bool exported { false }; struct wl_resource* bufferResource { nullptr }; struct wl_listener bufferDestroyListener; }; diff --git a/src/view-backend-exportable-fdo-egl.cpp b/src/view-backend-exportable-fdo-egl.cpp index 0031222..7e74dee 100644 --- a/src/view-backend-exportable-fdo-egl.cpp +++ b/src/view-backend-exportable-fdo-egl.cpp @@ -249,8 +249,6 @@ class ClientBundleEGL final : public ClientBundle { { if (image->bufferResource) viewBackend->releaseBuffer(image->bufferResource); - else - deleteImage(image); } void releaseShmBuffer(struct wpe_fdo_shm_exported_buffer* buffer) @@ -277,7 +275,6 @@ class ClientBundleEGL final : public ClientBundle { void exportImage(struct wpe_fdo_egl_exported_image* image) { - image->exported = true; client->export_fdo_egl_image(data, image); } @@ -295,6 +292,8 @@ class ClientBundleEGL final : public ClientBundle { image = wl_container_of(listener, image, bufferDestroyListener); image->bufferResource = nullptr; + + deleteImage(image); } };