Index: plugins/GSdx/GSTexture9.cpp =================================================================== --- plugins/GSdx/GSTexture9.cpp (revision 741) +++ plugins/GSdx/GSTexture9.cpp (working copy) @@ -176,11 +176,11 @@ m_surface->UnlockRect(); surface->UnlockRect(); - res = surface; + res = CComPtr(surface); } else { - res = m_surface; + res = CComPtr(m_surface); } if(CComQIPtr surface = res)