Kaydet (Commit) 23f124bf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity#983201: fix memory leak

Change-Id: I0c6a4ed147c6afc1dcabaa33833b7ca50afb4607
üst 48d099a8
...@@ -528,9 +528,7 @@ void VCLXMenu::setPopupMenu( sal_Int16 nItemId, const ::com::sun::star::uno::Ref ...@@ -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 the popup men is not created by stardiv.Toolkit.VCLXPopupMenu
if( !aRef.is() ) 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 > ; aRef = new VCLXPopupMenu( (PopupMenu*)pMenu );
*pNewRef = new VCLXPopupMenu( (PopupMenu*)pMenu );
aRef = *pNewRef;
} }
} }
return aRef; return aRef;
......
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