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:
timeless%mozdev.org 2005-03-29 17:19:23 +00:00
Родитель f4cc6020d9
Коммит 7e5fb8be26
3 изменённых файлов: 4 добавлений и 4 удалений

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

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