atl: Check for NULL.
This commit is contained in:
parent
fa6937f4a5
commit
c46327b40c
|
@ -1026,7 +1026,8 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
|
|||
IUnknown_AddRef( pUnkControl );
|
||||
}
|
||||
|
||||
IUnknown_Release( pUnkControl );
|
||||
if ( pUnkControl )
|
||||
IUnknown_Release( pUnkControl );
|
||||
if ( pContainer )
|
||||
IUnknown_Release( pContainer );
|
||||
|
||||
|
|
Loading…
Reference in New Issue