oleaut32: Clear record in RecordDestroy.

This commit is contained in:
Jacek Caban 2008-04-23 17:09:43 +02:00 committed by Alexandre Julliard
parent 378c17019e
commit dda741e456
1 changed files with 5 additions and 0 deletions

View File

@ -466,9 +466,14 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCreateCopy(IRecordInfo *iface, PVOID
static HRESULT WINAPI IRecordInfoImpl_RecordDestroy(IRecordInfo *iface, PVOID pvRecord)
{
IRecordInfoImpl *This = (IRecordInfoImpl*)iface;
HRESULT hres;
TRACE("(%p)->(%p)\n", This, pvRecord);
hres = IRecordInfo_RecordClear(iface, pvRecord);
if(FAILED(hres))
return hres;
if(!HeapFree(GetProcessHeap(), 0, pvRecord))
return E_INVALIDARG;