delete m_pTextSectionCount in destructor.
This commit is contained in:
@@ -124,7 +124,6 @@ MusicWheelItem::MusicWheelItem( const MusicWheelItem &cpy ):
|
||||
WheelItemBase( cpy ),
|
||||
GRADES_SHOW_MACHINE( cpy.GRADES_SHOW_MACHINE ),
|
||||
m_TextBanner( cpy.m_TextBanner ),
|
||||
m_pTextSectionCount( cpy.m_pTextSectionCount ),
|
||||
m_WheelNotifyIcon( cpy.m_WheelNotifyIcon )
|
||||
{
|
||||
FOREACH_ENUM( MusicWheelItemType, i )
|
||||
@@ -157,7 +156,7 @@ MusicWheelItem::MusicWheelItem( const MusicWheelItem &cpy ):
|
||||
}
|
||||
}
|
||||
|
||||
//m_pTextSectionCount = new BitmapText( *cpy.m_pTextSectionCount );
|
||||
m_pTextSectionCount = new BitmapText( *cpy.m_pTextSectionCount );
|
||||
this->AddChild( m_pTextSectionCount );
|
||||
|
||||
this->AddChild( &m_WheelNotifyIcon );
|
||||
@@ -171,6 +170,7 @@ MusicWheelItem::MusicWheelItem( const MusicWheelItem &cpy ):
|
||||
|
||||
MusicWheelItem::~MusicWheelItem()
|
||||
{
|
||||
delete m_pTextSectionCount;
|
||||
}
|
||||
|
||||
void MusicWheelItem::LoadFromWheelItemData( const WheelItemBaseData *pData, int iIndex, bool bHasFocus, int iDrawIndex )
|
||||
|
||||
Reference in New Issue
Block a user