summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-02 12:04:22 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 04:35:08 +0100
commit23f124bf95cbd395d9964502d9c1a6d28a6ff203 (patch)
tree6b159d211068f16dc0ddf533c9743dee551d34a8 /toolkit
parent48d099a85a3293074070ca91f4465f479cb3b90c (diff)
coverity#983201: fix memory leak
Change-Id: I0c6a4ed147c6afc1dcabaa33833b7ca50afb4607
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxmenu.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx
index fbda6cd1e5ca..01a6895eefb4 100644
--- a/toolkit/source/awt/vclxmenu.cxx
+++ b/toolkit/source/awt/vclxmenu.cxx
@@ -528,9 +528,7 @@ void VCLXMenu::setPopupMenu( sal_Int16 nItemId, const ::com::sun::star::uno::Ref
// if the popup men is not created by stardiv.Toolkit.VCLXPopupMenu
if( !aRef.is() )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > * pNewRef = new ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > ;
- *pNewRef = new VCLXPopupMenu( (PopupMenu*)pMenu );
- aRef = *pNewRef;
+ aRef = new VCLXPopupMenu( (PopupMenu*)pMenu );
}
}
return aRef;