Bug 1785003 - Fix resource leak in nsImapMailFolder::CompactAll. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D154710
This commit is contained in:
Родитель
e5f398708c
Коммит
b7695aae07
|
@ -1397,7 +1397,7 @@ NS_IMETHODIMP nsImapMailFolder::CompactAll(nsIUrlListener* aListener,
|
|||
// queuing them up as needed).
|
||||
|
||||
// A listener to track the completed expunges.
|
||||
UrlListener* l = new UrlListener();
|
||||
RefPtr<UrlListener> l = new UrlListener();
|
||||
l->mStopFn = [expungeCount = foldersToExpunge.Length(), doCompact](
|
||||
nsIURI* url, nsresult status) mutable -> nsresult {
|
||||
// NOTE: we're ignoring expunge result code - nothing much we can do
|
||||
|
|
Загрузка…
Ссылка в новой задаче