diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2018-12-29 06:25:50 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-29 06:25:50 -0800 |
commit | a556a32eaebefc94025cf67e211385828881d7d9 (patch) | |
tree | 8e5e714b47fed78744b471103d8ba45ce80c6495 /libFDK | |
parent | ca5723b92244e44a343febda95dbac59805c16bb (diff) | |
parent | 005d5690b6fe8fd0d0f624c34ddf9b578815525d (diff) | |
download | fdk-aac-a556a32eaebefc94025cf67e211385828881d7d9.tar.gz fdk-aac-a556a32eaebefc94025cf67e211385828881d7d9.tar.bz2 fdk-aac-a556a32eaebefc94025cf67e211385828881d7d9.zip |
Merge "Free whole QMF domain in case of an error in FDK_QmfDomain_Configure()" am: f8881d4bfe
am: 005d5690b6
Change-Id: I4c63548e0a96ffed45f64d0a14c1764acac25d2c
Diffstat (limited to 'libFDK')
-rw-r--r-- | libFDK/src/FDK_qmf_domain.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libFDK/src/FDK_qmf_domain.cpp b/libFDK/src/FDK_qmf_domain.cpp index dd63dab..3245deb 100644 --- a/libFDK/src/FDK_qmf_domain.cpp +++ b/libFDK/src/FDK_qmf_domain.cpp @@ -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; } |