SCI: Fix for _vocab_free_empty_rule_list

svn-id: r45278
This commit is contained in:
Max Horn 2009-10-20 19:10:51 +00:00
parent 1e1172af49
commit 4f69e0a753

View File

@ -51,6 +51,7 @@ struct ParseRule {
Common::Array<int> _data; /**< actual data */
~ParseRule() {
assert(_allocd_rules > 0);
--_allocd_rules;
}
@ -315,6 +316,7 @@ static void _vocab_free_empty_rule_list(ParseRuleList *list) {
if (list->next)
_vocab_free_empty_rule_list(list->next);
list->next = 0;
list->rule = 0;
delete list;
}