[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.
This commit is contained in:
parent
fda44f9540
commit
aaf64644f7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue