Changeset f63cc5b686ac…
Parent e87b99ebd0eb…
by
Changes to one file · Browse files at f63cc5b686ac Showing diff from parent e87b99ebd0eb Diff from another changeset...
@@ -77,7 +77,11 @@ if (NULL == pShellExt)
return E_OUTOFMEMORY;
- return pShellExt->QueryInterface(riid, ppvObj);
+ const HRESULT hr = pShellExt->QueryInterface(riid, ppvObj);
+ if (FAILED(hr))
+ delete pShellExt;
+
+ return hr;
}
|
Loading...