mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
f1e5814c8b
commit
02818b0304
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue