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:
Fraunhofer IIS FDK 2018-12-29 06:25:50 -08:00 committed by android-build-merger
commit a556a32eae
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}