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

[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.
parent 33a37f99
......@@ -126,7 +126,7 @@ BufferInterface::Private::~Private()
}
BufferInterface::BufferInterface(wl_resource *resource, SurfaceInterface *parent)
: QObject(parent)
: QObject()
, d(new Private(this, resource, parent))
{
}
......
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