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