From 47cc6adab11958bcdd50bb24817f9429f1f566bb Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 27 Oct 2020 02:44:13 +0300 Subject: Fix quitting the application Event emitter should only be freed when it emits NULL. Previously dc_accounts_event_emitter_unref() was called earlier then needed, causing use-after-free. As a result, the application got stuck waiting for event emitter thread to finish. --- qml/main.qml | 1 - 1 file changed, 1 deletion(-) (limited to 'qml') diff --git a/qml/main.qml b/qml/main.qml index e5b6aee..73abec6 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -53,6 +53,5 @@ Kirigami.ApplicationWindow { console.log('stopping') pageStack.pop(null) delete root.accountsModel - eventEmitter.stop() } } -- cgit v1.2.3-70-g09d2