GSDx: fixed incorrect use of CComPtr that would leave a dangling reference in the settings dialog code (only affects old pcsx2 versions and wouldn't be a significant resource leak even there)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4110 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1 2010-12-20 07:14:18 +00:00
parent f1e5814c8b
commit 02818b0304
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ void GSSettingsDlg::OnInit()
ComboBoxAppend(IDC_RESOLUTION, "Please select...", (LPARAM)&m_modes.back(), true);
if(CComPtr<IDirect3D9> d3d = Direct3DCreate9(D3D_SDK_VERSION))
CComPtr<IDirect3D9> d3d;
d3d.Attach(Direct3DCreate9(D3D_SDK_VERSION));
if(d3d)
{
uint32 w = theApp.GetConfig("ModeWidth", 0);
uint32 h = theApp.GetConfig("ModeHeight", 0);