Commit b44267693d19ee9764badbcac26f94d84343143b

Ryan C. Gordon 2013-08-19T11:02:44

Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!). Fixes Bugzilla #2047.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c
index d1c0ac0..fb45f88 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);
         }