From b44267693d19ee9764badbcac26f94d84343143b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 19 Aug 2013 11:02:44 -0400 Subject: [PATCH] Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!). Fixes Bugzilla #2047. --- src/render/direct3d/SDL_render_d3d.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index d1c0ac05b..fb45f882f 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -1835,7 +1835,9 @@ D3D_DestroyRenderer(SDL_Renderer * renderer) IDirect3DSurface9_Release(data->currentRenderTarget); data->currentRenderTarget = NULL; } - + if (data->ps_yuv) { + IDirect3DPixelShader9_Release(data->ps_yuv); + } if (data->device) { IDirect3DDevice9_Release(data->device); }