We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6376608 commit 19273a3Copy full SHA for 19273a3
1 file changed
src/daemon/TreelandConnector.cpp
@@ -220,10 +220,14 @@ 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
+ m_notifier->deleteLater();
227
+ m_notifier = nullptr;
228
+ m_display = nullptr;
229
}
230
+ m_ddm = nullptr;
231
232
233
// Request wrapper
0 commit comments