Commit 7dc42119 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

d3dx9: Always free samplers (Valgrind).

parent 63443f24
......@@ -519,6 +519,7 @@ static void free_sampler(struct d3dx_sampler *sampler)
free_state(&sampler->states[i]);
}
HeapFree(GetProcessHeap(), 0, sampler->states);
HeapFree(GetProcessHeap(), 0, sampler);
}
static void d3dx_pool_release_shared_parameter(struct d3dx_top_level_parameter *param);
......@@ -551,7 +552,7 @@ static void free_parameter_data(struct d3dx_parameter *param, BOOL child)
case D3DXPT_SAMPLER3D:
case D3DXPT_SAMPLERCUBE:
free_sampler((struct d3dx_sampler *)param->data);
break;
return;
default:
FIXME("Unhandled type %s\n", debug_d3dxparameter_type(param->type));
......
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