From aaf64644f7e813005f5c80f306887729560938a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 21 Apr 2015 09:00:10 +0200 Subject: [PATCH] [Server] Delete BufferInterface directly from destroyListenerCallback It showed that we don't eed the delete later and that it could cause a crash in QCoreApplication. --- src/wayland/server/buffer_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()