Fixed bug 1838 - [Patch] Direct3D resource leak on SDL_DestroyRenderer()
authorSam Lantinga <slouken@libsdl.org>
Thu, 16 May 2013 00:56:19 -0700
changeset 7183 5f13cca29fc1
parent 7182 1089a8a701c3
child 7184 1615a5e23078
Fixed bug 1838 - [Patch] Direct3D resource leak on SDL_DestroyRenderer()
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Thu May 16 00:52:33 2013 -0700
+++ b/src/render/direct3d/SDL_render_d3d.c	Thu May 16 00:56:19 2013 -0700
@@ -1506,6 +1506,7 @@
         }
         if (data->d3d) {
             IDirect3D9_Release(data->d3d);
+            ID3DXMatrixStack_Release(data->matrixStack);
             SDL_UnloadObject(data->d3dDLL);
         }
         SDL_free(data);