From ec989a50cf959237dfe3816c980604ab894c874b Mon Sep 17 00:00:00 2001 From: sudonim1 Date: Mon, 7 Jun 2010 18:41:37 +0000 Subject: [PATCH] GSDx: Fix D3D11 leaks. (Completely, forever.) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3183 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSTextureFX11.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSTextureFX11.cpp b/plugins/GSdx/GSTextureFX11.cpp index 91efde3580..e49e273682 100644 --- a/plugins/GSdx/GSTextureFX11.cpp +++ b/plugins/GSdx/GSTextureFX11.cpp @@ -142,7 +142,7 @@ void GSDevice11::SetupVS(VSSelector sel, const VSConstantBuffer* cb) void GSDevice11::SetupGS(GSSelector sel) { - ID3D11GeometryShader* gs = NULL; + CComPtr gs; if(sel.prim > 0 && (sel.iip == 0 || sel.prim == 3)) // geometry shader works in every case, but not needed { @@ -235,8 +235,7 @@ void GSDevice11::SetupPS(PSSelector sel, const PSConstantBuffer* cb, PSSamplerSe ctx->UpdateSubresource(m_ps_cb, 0, NULL, cb, 0, 0); } - ID3D11SamplerState* ss0 = NULL; - ID3D11SamplerState* ss1 = NULL; + CComPtr ss0, ss1; if(sel.tfx != 4) {