Erwan
-some memory leaks fixes
This commit is contained in:
@@ -137,6 +137,9 @@ GuiGameZone::GuiGameZone(float x, float y, bool hasFocus, MTGGameZone* zone, Gui
|
||||
|
||||
GuiGameZone::~GuiGameZone(){
|
||||
if (cd) delete cd;
|
||||
for (vector<TransientCardView*>::iterator it = cards.begin(); it != cards.end(); ++it){
|
||||
delete(*it);
|
||||
}
|
||||
}
|
||||
|
||||
ostream& GuiGameZone::toString(ostream& out) const
|
||||
|
||||
Reference in New Issue
Block a user