Fixed a memleak (PNS).

This commit is contained in:
Maciej Suminski 2015-07-22 10:46:56 +02:00
parent b16ade0805
commit 6cb57f100a
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,6 @@ PNS_LINE::PNS_LINE( const PNS_LINE& aOther ) :
PNS_LINE::~PNS_LINE() PNS_LINE::~PNS_LINE()
{ {
if( m_segmentRefs )
delete m_segmentRefs; delete m_segmentRefs;
} }

View File

@ -59,6 +59,7 @@ ROUTER_PREVIEW_ITEM::ROUTER_PREVIEW_ITEM( const PNS_ITEM* aItem, VIEW_GROUP* aPa
ROUTER_PREVIEW_ITEM::~ROUTER_PREVIEW_ITEM() ROUTER_PREVIEW_ITEM::~ROUTER_PREVIEW_ITEM()
{ {
delete m_shape;
} }