Commit aaf64644 authored by Martin Flöser's avatar Martin Flöser
Browse files

[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.
parent fda44f95
......@@ -168,7 +168,7 @@ void BufferInterface::Private::destroyListenerCallback(wl_listener *listener, vo
auto b = cast(reinterpret_cast<wl_resource*>(data));
b->buffer = nullptr;
emit b->q->aboutToBeDestroyed(b->q);
b->q->deleteLater();
delete b->q;
}
void BufferInterface::ref()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment