coverity#705963 Dereference before null check

Change-Id: I6371ef5e838d1e66ea9aeba75f554eea93426139
This commit is contained in:
Caolán McNamara
2014-02-21 13:30:53 +00:00
parent 0e0ac7cc65
commit 7a7ecf164a

View File

@@ -275,8 +275,6 @@ void UnoWrapper::WindowDestroyed( Window* pWindow )
// #i42462#/#116855# no, don't loop: Instead, just ensure that all our top-window-children
// are disposed, too (which should also be a valid fix for #102132#, but doesn't have the extreme
// performance penalties)
if ( pWindow )
{
Window* pTopWindowChild = pWindow->GetWindow( WINDOW_FIRSTTOPWINDOWCHILD );
while ( pTopWindowChild )
{
@@ -292,7 +290,6 @@ void UnoWrapper::WindowDestroyed( Window* pWindow )
pTopWindowChild = pNextTopChild;
}
}
}
// ----------------------------------------------------------------------------