From 1e63b898f287c09b67620533eae0c2da7f0cc2f6 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 22 Mar 2011 22:18:25 -0400 Subject: [PATCH] Fix a memory leak. --- src/MusicWheelItem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MusicWheelItem.cpp b/src/MusicWheelItem.cpp index 659de68a4d..df198ef22a 100644 --- a/src/MusicWheelItem.cpp +++ b/src/MusicWheelItem.cpp @@ -126,6 +126,7 @@ 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 ) @@ -158,7 +159,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 );