No need to check for NULL before delete.

Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494
This commit is contained in:
Kohei Yoshida 2014-06-09 13:00:54 -04:00
parent acf56987b0
commit 1f0804bc00

View File

@ -176,11 +176,8 @@ SotElement_Impl::SotElement_Impl( const OUString& rName, bool bStor, bool bNew )
SotElement_Impl::~SotElement_Impl()
{
if ( m_pStorage )
delete m_pStorage;
if ( m_pStream )
delete m_pStream;
delete m_pStorage;
delete m_pStream;
}
// most of properties are holt by the storage but are not used