Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!).
authorRyan C. Gordon <icculus@icculus.org>
Mon, 19 Aug 2013 11:02:44 -0400
changeset 7658 4033ba4fcc31
parent 7657 7a8955fe2f63
child 7659 ac4ce59c40e7
Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!). Fixes Bugzilla #2047.
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Sun Aug 18 23:18:11 2013 -0700
+++ b/src/render/direct3d/SDL_render_d3d.c	Mon Aug 19 11:02:44 2013 -0400
@@ -1835,7 +1835,9 @@
             IDirect3DSurface9_Release(data->currentRenderTarget);
             data->currentRenderTarget = NULL;
         }
-
+        if (data->ps_yuv) {
+            IDirect3DPixelShader9_Release(data->ps_yuv);
+        }
         if (data->device) {
             IDirect3DDevice9_Release(data->device);
         }