Commit 8f6b6303 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

d3dx9_36: Fix free of address-of expression (coverity).

parent bbefb29d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment