mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
mobileshellstate: Fix memory leak
This commit is contained in:
parent
85efe7343d
commit
2ba1eeb8d4
1 changed files with 12 additions and 0 deletions
|
|
@ -175,6 +175,8 @@ void ShellDBusClient::updatePanelState()
|
|||
m_panelState = panelState;
|
||||
Q_EMIT panelStateChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -191,6 +193,8 @@ void ShellDBusClient::updateDoNotDisturb()
|
|||
m_doNotDisturb = doNotDisturb;
|
||||
Q_EMIT doNotDisturbChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -207,6 +211,8 @@ void ShellDBusClient::updateIsActionDrawerOpen()
|
|||
m_isActionDrawerOpen = isActionDrawerOpen;
|
||||
Q_EMIT isActionDrawerOpenChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -223,6 +229,8 @@ void ShellDBusClient::updateIsVolumeOSDOpen()
|
|||
m_isVolumeOSDOpen = isVolumeOSDOpen;
|
||||
Q_EMIT isVolumeOSDOpenChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -239,6 +247,8 @@ void ShellDBusClient::updateIsNotificationPopupDrawerOpen()
|
|||
m_isNotificationPopupDrawerOpen = isNotificationPopupDrawerOpen;
|
||||
Q_EMIT isNotificationPopupDrawerOpenChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -255,5 +265,7 @@ void ShellDBusClient::updateIsTaskSwitcherVisible()
|
|||
m_isTaskSwitcherVisible = isTaskSwitcherVisible;
|
||||
Q_EMIT isTaskSwitcherVisibleChanged();
|
||||
}
|
||||
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue