No need to check for NULL before delete.
Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494
This commit is contained in:
parent
acf56987b0
commit
1f0804bc00
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user