mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Fix memleak and assignment for cached lengths in corrector
This commit is contained in:
parent
622c55f254
commit
bf6eb9432e
1 changed files with 2 additions and 0 deletions
|
@ -502,11 +502,13 @@ void correct_init(correction_t *c)
|
|||
{
|
||||
correct_pool_new();
|
||||
c->edits = NULL;
|
||||
c->lens = NULL;
|
||||
}
|
||||
|
||||
void correct_free(correction_t *c)
|
||||
{
|
||||
vec_free(c->edits);
|
||||
vec_free(c->lens);
|
||||
correct_pool_delete();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue