diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp index cebbc8ab39..5429ddd70f 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp @@ -513,7 +513,7 @@ struct CommandDeleter : BPrivate::AutoDeleter ~CommandDeleter() { - if (dynamic_cast(fObject) != NULL) + if (dynamic_cast(Get()) != NULL) WorkerPrivate(fWorker).SyncCommandDone(); }