Kaydet (Commit) 2a83910e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704644 Dereference after null check

Change-Id: I9b2aad39c54497b5b53a86cf11a754f89c012d0e
üst 09c0e511
...@@ -176,10 +176,14 @@ namespace frm ...@@ -176,10 +176,14 @@ namespace frm
void OPasteClipboardDispatcher::disposing( ::osl::ClearableMutexGuard& _rClearBeforeNotify ) void OPasteClipboardDispatcher::disposing( ::osl::ClearableMutexGuard& _rClearBeforeNotify )
{ {
OSL_ENSURE( getEditView() && getEditView()->GetWindow(), "OPasteClipboardDispatcher::disposing: EditView should not (yet) be disfunctional here!" ); OSL_ENSURE( getEditView() && getEditView()->GetWindow(), "OPasteClipboardDispatcher::disposing: EditView should not (yet) be disfunctional here!" );
if ( getEditView() && getEditView()->GetWindow() && m_pClipListener ) if (m_pClipListener)
m_pClipListener->AddRemoveListener( getEditView()->GetWindow(), sal_False ); {
m_pClipListener->release(); if (getEditView() && getEditView()->GetWindow())
m_pClipListener = NULL; m_pClipListener->AddRemoveListener( getEditView()->GetWindow(), sal_False );
m_pClipListener->release();
m_pClipListener = NULL;
}
OClipboardDispatcher::disposing( _rClearBeforeNotify ); OClipboardDispatcher::disposing( _rClearBeforeNotify );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment