diff --git a/src/wayland/server/buffer_interface.cpp b/src/wayland/server/buffer_interface.cpp index 130aaf3db3..2e41d66a01 100644 --- a/src/wayland/server/buffer_interface.cpp +++ b/src/wayland/server/buffer_interface.cpp @@ -168,7 +168,7 @@ void BufferInterface::Private::destroyListenerCallback(wl_listener *listener, vo auto b = cast(reinterpret_cast(data)); b->buffer = nullptr; emit b->q->aboutToBeDestroyed(b->q); - b->q->deleteLater(); + delete b->q; } void BufferInterface::ref()