- Lord+Regenerate (zombie master) memory leak fix
- "... All" memory leak fix
- Sacrifice target memory leak fix
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-26 11:38:53 +00:00
parent 708af7b675
commit 910401a2e5
4 changed files with 13 additions and 0 deletions

View File

@@ -1292,6 +1292,10 @@ class ALord:public ListMaintainerAbility{
return 1;
}
~ALord(){
SAFE_DELETE(regenCost);
}
virtual ostream& toString(ostream& out) const
{
out << "ALord ::: power : " << power

View File

@@ -13,6 +13,7 @@ public:
TargetChooser * tc;
MTGCardInstance * source;
ExtraCost(TargetChooser *_tc = NULL);
~ExtraCost();
virtual int setPayment(MTGCardInstance * card) = 0;
virtual int isPaymentSet() = 0;
virtual int doPay() = 0;