Another loop...wait.
This just screams smart pointer control.
This commit is contained in:
@@ -14,8 +14,8 @@ REGISTER_ACTOR_CLASS( CourseContentsList );
|
|||||||
|
|
||||||
CourseContentsList::~CourseContentsList()
|
CourseContentsList::~CourseContentsList()
|
||||||
{
|
{
|
||||||
FOREACH( Actor *, m_vpDisplay, d )
|
for (Actor *d : m_vpDisplay)
|
||||||
delete *d;
|
delete d;
|
||||||
m_vpDisplay.clear();
|
m_vpDisplay.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user