Kaydet (Commit) 17d42fdf authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#705761 pItem leaks

Change-Id: I46ea45c9b6ab35842c3f2747984f2def385326fd
üst a29062a4
...@@ -204,6 +204,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : ...@@ -204,6 +204,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) :
Check( MN_READONLY_COPY, SID_COPY, rDis ); Check( MN_READONLY_COPY, SID_COPY, rDis );
if(eState < SFX_ITEM_AVAILABLE) if(eState < SFX_ITEM_AVAILABLE)
EnableItem( MN_READONLY_COPY, sal_False ); EnableItem( MN_READONLY_COPY, sal_False );
delete pState;
eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState ); eState = pVFrame->GetBindings().QueryState( SID_EDITDOC, pState );
if ( if (
...@@ -213,6 +214,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) : ...@@ -213,6 +214,7 @@ SwReadOnlyPopup::SwReadOnlyPopup( const Point &rDPos, SwView &rV ) :
{ {
EnableItem( MN_READONLY_EDITDOC, sal_False ); EnableItem( MN_READONLY_EDITDOC, sal_False );
} }
delete pState;
if ( !sURL.Len() ) if ( !sURL.Len() )
{ {
......
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