-fix for issue 424 (memory leak in thisforeach)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-06-14 13:21:08 +00:00
parent 7b2c4f84a0
commit 12ee47ad24
+3
View File
@@ -393,6 +393,9 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
} }
} }
if (found != string::npos && found < lord) { if (found != string::npos && found < lord) {
//why does tc even exist here? This shouldn't happen...
SAFE_DELETE(tc); //http://code.google.com/p/wagic/issues/detail?id=424
size_t header = thises[i].size(); size_t header = thises[i].size();
size_t end = s.find(")", found+header); size_t end = s.find(")", found+header);
string s1; string s1;