зеркало из https://github.com/mozilla/gecko-dev.git
fixed freeing mismatched memory error.
This commit is contained in:
Родитель
3cbf9af982
Коммит
d58487c55f
|
@ -108,8 +108,8 @@ nsMsgFactory::~nsMsgFactory()
|
|||
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
|
||||
|
||||
NS_IF_RELEASE(mServiceManager);
|
||||
delete[] mClassName;
|
||||
delete[] mProgID;
|
||||
PL_strfree(mClassName);
|
||||
PL_strfree(mProgID);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -98,8 +98,8 @@ nsMsgComposeFactory::~nsMsgComposeFactory()
|
|||
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
|
||||
|
||||
NS_IF_RELEASE(mServiceManager);
|
||||
delete[] mClassName;
|
||||
delete[] mProgID;
|
||||
PL_strfree(mClassName);
|
||||
PL_strfree(mProgID);
|
||||
}
|
||||
|
||||
nsresult nsMsgComposeFactory::QueryInterface(const nsIID &aIID, void **aResult)
|
||||
|
|
|
@ -102,11 +102,11 @@ nsMsgDatabase::CreateMsgHdr(nsIMdbRow* hdrRow, nsFileSpec& path, nsMsgKey key, n
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
char* msgURI = PR_smprintf("%s#%d", folderURI, key);
|
||||
delete[] folderURI;
|
||||
delete folderURI;
|
||||
|
||||
nsIRDFResource* res;
|
||||
rv = rdf->GetResource(msgURI, &res);
|
||||
delete[] msgURI;
|
||||
PR_smprintf_free(msgURI);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsMsgHdr* msgHdr = (nsMsgHdr*)res;
|
||||
|
|
Загрузка…
Ссылка в новой задаче