Commit 613aeb79 authored by David Edmundson's avatar David Edmundson
Browse files

Guard resource deletion in OuptutConfiguration::sendApplied

Summary:
A client (kscreen-doctor especially) can disconnect whilst kwin still
has an instance.

Test Plan:
Had reproducible crash on kscreen-doctor.
Now don't.

Reviewers: #kwin

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D18248
parent fd4f77d8
......@@ -287,6 +287,9 @@ void OutputConfigurationInterface::setApplied()
void OutputConfigurationInterface::Private::sendApplied()
{
if (!resource) {
return;
}
org_kde_kwin_outputconfiguration_send_applied(resource);
}
......@@ -299,6 +302,9 @@ void OutputConfigurationInterface::setFailed()
void OutputConfigurationInterface::Private::sendFailed()
{
if (!resource) {
return;
}
org_kde_kwin_outputconfiguration_send_failed(resource);
}
......
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