зеркало из https://github.com/mozilla/pjs.git
Bug 283071 Allocation/free mismatch in base/import/oexpress/nsOE5File.cpp
Bug 283072 Allocation/free mismatch in base/import/outlook/src/MapiApi.cpp Bug 283075 Allocation/free mismatch in base/import/oexpress/wabobject.cpp patch by bugzilla@standard8.demon.co.uk r=bienvenu sr=bienvenu
This commit is contained in:
Родитель
f4cc6020d9
Коммит
7e5fb8be26
|
@ -435,7 +435,7 @@ LPSPropValue CWAB::GetListProperty( LPDISTLIST pUser, ULONG tag)
|
|||
LPSPropValue lpProp = NULL;
|
||||
ULONG cValues = 0;
|
||||
HRESULT hr = pUser->GetProps( pTag, 0, &cValues, &lpProp);
|
||||
delete pTag;
|
||||
delete [] pTag;
|
||||
if (HR_FAILED( hr) || (cValues != 1)) {
|
||||
if (lpProp)
|
||||
m_lpWABObject->FreeBuffer( lpProp);
|
||||
|
@ -495,7 +495,7 @@ LPSPropValue CWAB::GetUserProperty( LPMAILUSER pUser, ULONG tag)
|
|||
}
|
||||
}
|
||||
}
|
||||
delete pTag;
|
||||
delete [] pTag;
|
||||
return( lpProp);
|
||||
}
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ PRUint32 nsOE5File::ReadMsgIndex( nsIFileSpec *file, PRUint32 offset, PRUint32Ar
|
|||
if (next)
|
||||
while ((next = ReadMsgIndex( file, next, pArray)) != 0);
|
||||
}
|
||||
delete pData;
|
||||
delete [] pData;
|
||||
|
||||
// return the pointer to the next subIndex
|
||||
return( vals[1]);
|
||||
|
|
|
@ -1097,7 +1097,7 @@ LPSPropValue CMapiApi::GetMapiProperty( LPMAPIPROP pProp, ULONG tag)
|
|||
LPSPropValue lpProp = NULL;
|
||||
ULONG cValues = 0;
|
||||
HRESULT hr = pProp->GetProps( pTag, 0, &cValues, &lpProp);
|
||||
delete pTag;
|
||||
delete [] pTag;
|
||||
if (HR_FAILED( hr) || (cValues != 1)) {
|
||||
if (lpProp)
|
||||
MAPIFreeBuffer( lpProp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче