[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:
Martin Gräßlin 2015-04-21 09:00:10 +02:00
parent fda44f9540
commit aaf64644f7

View file

@ -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()