diff --git a/src/wayland/server/linuxdmabuf_v1_interface.cpp b/src/wayland/server/linuxdmabuf_v1_interface.cpp index bbc713532d..fd30f074e1 100644 --- a/src/wayland/server/linuxdmabuf_v1_interface.cpp +++ b/src/wayland/server/linuxdmabuf_v1_interface.cpp @@ -428,10 +428,7 @@ V1Iface::Private::Private(V1Iface *q, Display *display) { } -V1Iface::Private::~Private() -{ - delete impl; -} +V1Iface::Private::~Private() = default; void V1Iface::Private::bind(wl_client *client, uint32_t version, uint32_t id) { diff --git a/src/wayland/server/linuxdmabuf_v1_interface.h b/src/wayland/server/linuxdmabuf_v1_interface.h index f461dd17a4..5a6e47a9fc 100644 --- a/src/wayland/server/linuxdmabuf_v1_interface.h +++ b/src/wayland/server/linuxdmabuf_v1_interface.h @@ -146,6 +146,8 @@ public: /** * Sets the compositor implementation for the dmabuf interface. + * + * The ownership is not transferred by this call. */ void setImpl(Impl *impl);