fixed freeing mismatched memory error.

This commit is contained in:
putterman%netscape.com 1999-03-30 02:24:18 +00:00
Родитель 3cbf9af982
Коммит d58487c55f
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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;