mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Free whole QMF domain in case of an error in FDK_QmfDomain_Configure()" am: f8881d4bfe
am: 005d5690b6
Change-Id: I4c63548e0a96ffed45f64d0a14c1764acac25d2c
This commit is contained in:
commit
a556a32eae
|
@ -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