don't leak the BMessageRunner. CID 8

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27570 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-15 14:51:21 +00:00
parent eb0974311f
commit 76ef98dd3f
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ IMAP4Client::IMAP4Client(BMessage *settings, BMailChainRunner *run) : BRemoteMai
} }
IMAP4Client::~IMAP4Client() { IMAP4Client::~IMAP4Client() {
delete nooprunner;
if (net > 0) { if (net > 0) {
if (selected_mb != "") if (selected_mb != "")
SendCommand("CLOSE"); SendCommand("CLOSE");