d3dx9_36: Fix free of address-of expression (coverity).
This commit is contained in:
parent
bbefb29d1c
commit
8f6b6303ec
|
@ -3590,7 +3590,7 @@ static HRESULT filedata_get_name(IDirectXFileData *filedata, char **name)
|
|||
|
||||
hr = IDirectXFileObject_GetName(filedata, *name, &name_len);
|
||||
if (FAILED(hr))
|
||||
HeapFree(GetProcessHeap(), 0, name);
|
||||
HeapFree(GetProcessHeap(), 0, *name);
|
||||
if (!name_len)
|
||||
(*name)[0] = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue