[server] Don't set a parent on BufferInterface
BufferInterface used to have a SurfaceInterface as parent. This could result in easily hitting the abort condition that the BufferInterface was still referenced when it gets deleted by just having one other user referencing the BufferInterface. There is no need to have the BufferInterface deleted when the SurfaceInterface to which it belongs gets deleted. The BufferInterface will get deleted once it's completely unreferenced and also has a destroy listener.
This commit is contained in:
parent
33a37f99b7
commit
bfccb15d2f
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ BufferInterface::Private::~Private()
|
|||
}
|
||||
|
||||
BufferInterface::BufferInterface(wl_resource *resource, SurfaceInterface *parent)
|
||||
: QObject(parent)
|
||||
: QObject()
|
||||
, d(new Private(this, resource, parent))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue