mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
SCI: Fix for _vocab_free_empty_rule_list
svn-id: r45278
This commit is contained in:
parent
1e1172af49
commit
4f69e0a753
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user