mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
d3dxof: Prevent accessing pobj when it is null. This can happend on error.
This commit is contained in:
parent
310c174eee
commit
0eb9740e79
@ -522,8 +522,11 @@ static ULONG WINAPI IDirectXFileDataImpl_Release(IDirectXFileData* iface)
|
||||
if (!This->level && !This->from_ref)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, This->pstrings);
|
||||
HeapFree(GetProcessHeap(), 0, This->pobj->pdata);
|
||||
HeapFree(GetProcessHeap(), 0, This->pobj);
|
||||
if (This->pobj)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, This->pobj->pdata);
|
||||
HeapFree(GetProcessHeap(), 0, This->pobj);
|
||||
}
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user