aboutsummaryrefslogtreecommitdiff
path: root/eventemitter.cpp
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-10-27 02:44:13 +0300
committerlink2xt <link2xt@testrun.org>2020-10-27 02:44:15 +0300
commit47cc6adab11958bcdd50bb24817f9429f1f566bb (patch)
treed3277e2669f91c8892d87eac3965dc7f0ea06a79 /eventemitter.cpp
parente84f17304ad0534e161346c22151f23e6577b75a (diff)
downloadkdeltachat-47cc6adab11958bcdd50bb24817f9429f1f566bb.tar.gz
kdeltachat-47cc6adab11958bcdd50bb24817f9429f1f566bb.zip
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.
Diffstat (limited to 'eventemitter.cpp')
-rw-r--r--eventemitter.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/eventemitter.cpp b/eventemitter.cpp
index 7c4d928..2265429 100644
--- a/eventemitter.cpp
+++ b/eventemitter.cpp
@@ -33,13 +33,6 @@ DcAccountsEventEmitter::start()
}
void
-DcAccountsEventEmitter::stop()
-{
- qInfo("Stopping event emitter");
- dc_accounts_event_emitter_unref(m_accounts_event_emitter);
-}
-
-void
DcAccountsEventEmitter::processEvent(DcEvent *event)
{
emit incomingEvent();