Another deletion loop.

Another opportunity for a smart pointer.
This commit is contained in:
Jason Felds
2013-05-01 21:52:48 -04:00
parent 0976455ec8
commit 6069744cf2
+2 -2
View File
@@ -23,9 +23,9 @@ ModIconRow::ModIconRow()
ModIconRow::~ModIconRow() ModIconRow::~ModIconRow()
{ {
FOREACH( ModIcon*, m_vpModIcon, p ) for (ModIcon *p : m_vpModIcon)
{ {
SAFE_DELETE( *p ); SAFE_DELETE( p );
} }
this->RemoveAllChildren(); this->RemoveAllChildren();
} }