[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:
Martin Gräßlin 2015-03-04 07:43:21 +01:00
parent 33a37f99b7
commit bfccb15d2f

View file

@ -126,7 +126,7 @@ BufferInterface::Private::~Private()
}
BufferInterface::BufferInterface(wl_resource *resource, SurfaceInterface *parent)
: QObject(parent)
: QObject()
, d(new Private(this, resource, parent))
{
}