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 76584033ba4fcc31
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
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Sun Aug 18 23:18:11 2013 -0700
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Mon Aug 19 11:02:44 2013 -0400
     1.3 @@ -1835,7 +1835,9 @@
     1.4              IDirect3DSurface9_Release(data->currentRenderTarget);
     1.5              data->currentRenderTarget = NULL;
     1.6          }
     1.7 -
     1.8 +        if (data->ps_yuv) {
     1.9 +            IDirect3DPixelShader9_Release(data->ps_yuv);
    1.10 +        }
    1.11          if (data->device) {
    1.12              IDirect3DDevice9_Release(data->device);
    1.13          }