diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 09:10:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-11 09:12:38 +0100 |
commit | 17605133e01c7a58d5e2f10c441bf67582ae4898 (patch) | |
tree | c5e42ff360e1e18fe73a8975ef5e406ad42fdc82 | |
parent | 015c00b62f948920e7fc9eb280420cf2558b8fa8 (diff) |
CID#1103774 avoid use after free
Change-Id: I0cbe52bf48fb9a2611043c6c3e187b9db4414365
-rw-r--r-- | sw/source/ui/docvw/romenu.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx index f478471f9d11..ea480007a844 100644 --- a/sw/source/ui/docvw/romenu.cxx +++ b/sw/source/ui/docvw/romenu.cxx @@ -198,13 +198,14 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : Check( MN_READONLY_OPENURL, SID_OPENDOC, rDis ); Check( MN_READONLY_OPENURLNEW, SID_OPENDOC, rDis ); - SfxPoolItem* pState; + SfxPoolItem* pState = NULL; SfxItemState eState = pVFrame->GetBindings().QueryState( SID_COPY, pState ); Check( MN_READONLY_COPY, SID_COPY, rDis ); if(eState < SFX_ITEM_AVAILABLE) EnableItem( MN_READONLY_COPY, sal_False ); delete pState; + pState = NULL; eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState ); if ( |