diff --git a/src/wayland/server/outputmanagement_interface.cpp b/src/wayland/server/outputmanagement_interface.cpp index 36c6fdf4ba..b8358f6d11 100644 --- a/src/wayland/server/outputmanagement_interface.cpp +++ b/src/wayland/server/outputmanagement_interface.cpp @@ -71,7 +71,7 @@ void OutputManagementInterface::Private::createConfiguration(wl_client* client, } configurationInterfaces[resource] = config; - connect(config, &QObject::destroyed, [this, resource] { + connect(config, &QObject::destroyed, q, [this, resource] { configurationInterfaces.remove(resource); }); }