mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
Call close on the mail database instead of release.
This commit is contained in:
parent
bced03e577
commit
e25cc12a5c
@ -138,7 +138,7 @@ nsresult nsMailboxService::DisplayMessageNumber(const nsFilePath& aMailboxPath,
|
||||
{
|
||||
nsMsgKey msgKey = msgKeys[aMessageNumber];
|
||||
// okay, we have the msgKey so let's get rid of our db state...
|
||||
mailDb->Release();
|
||||
mailDb->Close();
|
||||
mailDb = nsnull;
|
||||
rv = DisplayMessage(aMailboxPath, msgKey, nsnull, aDisplayConsumer, aUrlListener, aURL);
|
||||
}
|
||||
@ -147,7 +147,7 @@ nsresult nsMailboxService::DisplayMessageNumber(const nsFilePath& aMailboxPath,
|
||||
}
|
||||
|
||||
if (mailDb) // in case we slipped through the cracks without releasing the db...
|
||||
mailDb->Release();
|
||||
mailDb->Close();
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user