We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6376608 commit 2c772a7Copy full SHA for 2c772a7
1 file changed
src/daemon/TreelandConnector.cpp
@@ -220,10 +220,15 @@ void TreelandConnector::connect(QString socketPath) {
220
221
void TreelandConnector::disconnect() {
222
if (m_display) {
223
- m_notifier->setEnabled(false);
+ if (m_notifier)
224
+ m_notifier->setEnabled(false);
225
wl_display_disconnect(m_display);
- delete m_notifier;
226
227
+ m_notifier->deleteLater();
228
+ m_notifier = nullptr;
229
+ m_display = nullptr;
230
}
231
+ m_ddm = nullptr;
232
233
234
// Request wrapper
0 commit comments