From 577217f91a918928f18ed0a102eb03b3a28614cd Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 14 Feb 2014 10:50:19 +0100 Subject: [PATCH] d3d10: Release blend state references in d3d10_effect_variable_destroy(). --- dlls/d3d10/effect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 1cda7c8e68c..1b1d5547e8e 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -2295,6 +2295,11 @@ static void d3d10_effect_variable_destroy(struct d3d10_effect_variable *v) ID3D10DepthStencilState_Release(v->u.state.object.depth_stencil); break; + case D3D10_SVT_BLEND: + if (v->u.state.object.blend) + ID3D10BlendState_Release(v->u.state.object.blend); + break; + default: break; }