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

[server] Default init link.prev/next of the destroyListener in BufferInterface

Better save than sorry.
parent d28f95f6
......@@ -107,6 +107,8 @@ BufferInterface::Private::Private(BufferInterface *q, wl_resource *resource, Sur
{
s_buffers << this;
listener.notify = destroyListenerCallback;
listener.link.prev = nullptr;
listener.link.next = nullptr;
wl_resource_add_destroy_listener(resource, &listener);
if (shmBuffer) {
size = QSize(wl_shm_buffer_get_width(shmBuffer), wl_shm_buffer_get_height(shmBuffer));
......
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