vsrcdest.c, isrcdest.c: fix memory leak by freeing VSRCcoeffs, ISRCcoeffs
This commit is contained in:
parent
075b620a86
commit
a97b330965
|
|
@ -24,7 +24,10 @@ ISRCdestroy(GENmodel **inModel)
|
|||
oldmod = mod;
|
||||
prev = NULL;
|
||||
for(here = mod->ISRCinstances ; here ; here = here->ISRCnextInstance) {
|
||||
if(prev) FREE(prev);
|
||||
if(prev) {
|
||||
tfree(prev->ISRCcoeffs);
|
||||
FREE(prev);
|
||||
}
|
||||
prev = here;
|
||||
}
|
||||
if(prev) FREE(prev);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,10 @@ VSRCdestroy(GENmodel **inModel)
|
|||
oldmod = mod;
|
||||
prev = NULL;
|
||||
for(here = mod->VSRCinstances ; here ; here = here->VSRCnextInstance) {
|
||||
if(prev) FREE(prev);
|
||||
if(prev) {
|
||||
tfree(prev->VSRCcoeffs);
|
||||
FREE(prev);
|
||||
}
|
||||
prev = here;
|
||||
}
|
||||
if(prev) FREE(prev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue