Commit 9d725b17 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: Free old object data when reusing effect object.

parent ebaa5ac7
......@@ -4774,10 +4774,13 @@ static HRESULT d3dx9_copy_data(struct d3dx9_base_effect *base, unsigned int obje
FIXME("Overwriting object id %u!\n", object_id);
else
TRACE("Overwriting object id 0.\n");
HeapFree(GetProcessHeap(), 0, object->data);
object->data = NULL;
}
read_dword(ptr, &object->size);
TRACE("Data size: %#x\n", object->size);
TRACE("Data size: %#x.\n", object->size);
if (!object->size)
return D3D_OK;
......
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