atl: Check for NULL.

This commit is contained in:
Marcus Meissner 2008-01-26 09:40:42 +01:00 committed by Alexandre Julliard
parent fa6937f4a5
commit c46327b40c
1 changed files with 2 additions and 1 deletions

View File

@ -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 );