зеркало из https://github.com/mozilla/pjs.git
fixed memory leak using nsISupportsArray
This commit is contained in:
Родитель
ca19258d24
Коммит
e8c04d9530
|
@ -384,7 +384,10 @@ nsMsgCopyService::CopyMessages(nsIMsgFolder* srcFolder, /* UI src foler */
|
||||||
// duplicate the message array so we could sort the messages by it's
|
// duplicate the message array so we could sort the messages by it's
|
||||||
// folder easily
|
// folder easily
|
||||||
for (i=0; i<cnt; i++)
|
for (i=0; i<cnt; i++)
|
||||||
msgArray->AppendElement(messages->ElementAt(i));
|
{
|
||||||
|
aSupport = getter_AddRefs(messages->ElementAt(i));
|
||||||
|
msgArray->AppendElement(aSupport);
|
||||||
|
}
|
||||||
|
|
||||||
rv = msgArray->Count(&rv);
|
rv = msgArray->Count(&rv);
|
||||||
if (NS_FAILED(rv)) goto done;
|
if (NS_FAILED(rv)) goto done;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче