mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Free whole QMF domain in case of an error in FDK_QmfDomain_Configure()"
This commit is contained in:
commit
f8881d4bfe
|
@ -983,9 +983,8 @@ QMF_DOMAIN_ERROR FDK_QmfDomain_Configure(HANDLE_FDK_QMF_DOMAIN hqd) {
|
|||
}
|
||||
|
||||
bail:
|
||||
if (err == QMF_DOMAIN_OUT_OF_MEMORY) {
|
||||
FDK_QmfDomain_FreePersistentMemory(hqd);
|
||||
FDK_QmfDomain_ClearConfigured(&hqd->globalConf);
|
||||
if (err) {
|
||||
FDK_QmfDomain_FreeMem(hqd);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue