From 9b94f66bc01ffa149cd4eb33c150db29425094cc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 20 Sep 2006 22:09:44 +0000 Subject: [PATCH] fix leak --- stepmania/src/OptionRow.cpp | 2 +- stepmania/src/OptionRow.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index 61b198ab2b..5b4bfc650e 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -109,7 +109,7 @@ void OptionRowType::Load( const RString &sType ) if( SHOW_UNDERLINES ) m_UnderlineParent.Load( sType, OptionsCursor::underline ); m_textTitle.LoadFromFont( THEME->GetPathF(sType,"title") ); - m_sprBullet = ActorUtil::MakeActor( THEME->GetPathG(sType,"bullet") ); + m_sprBullet.Load( ActorUtil::MakeActor( THEME->GetPathG(sType,"bullet") ) ); if( SHOW_OPTION_ICONS ) m_OptionIcon.Load( sType ); } diff --git a/stepmania/src/OptionRow.h b/stepmania/src/OptionRow.h index 777221f6d1..f0716886aa 100644 --- a/stepmania/src/OptionRow.h +++ b/stepmania/src/OptionRow.h @@ -24,7 +24,7 @@ private: BitmapText m_textItemParent; OptionsCursor m_UnderlineParent; - Actor *m_sprBullet; + AutoActor m_sprBullet; BitmapText m_textTitle; OptionIcon m_OptionIcon;