diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-03 12:28:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-03 13:09:24 +0100 |
commit | 17d42fdfdf1428b1e48dfab9f71a759b8c767ec4 (patch) | |
tree | 86d0386750522daf1c057ff010fdf0e87bd578c2 /sw | |
parent | a29062a4782456f98d41f871631947ea60a65213 (diff) |
CID#705761 pItem leaks
Change-Id: I46ea45c9b6ab35842c3f2747984f2def385326fd
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/docvw/romenu.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/docvw/romenu.cxx b/sw/source/ui/docvw/romenu.cxx index 9a1c3c718aca..3717572fcf70 100644 --- a/sw/source/ui/docvw/romenu.cxx +++ b/sw/source/ui/docvw/romenu.cxx @@ -204,6 +204,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : Check( MN_READONLY_COPY, SID_COPY, rDis ); if(eState < SFX_ITEM_AVAILABLE) EnableItem( MN_READONLY_COPY, sal_False ); + delete pState; eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState ); if ( @@ -213,6 +214,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : { EnableItem( MN_READONLY_EDITDOC, sal_False ); } + delete pState; if ( !sURL.Len() ) { |