From 3959975747681d8c7546fc19f72303308f244a22 Mon Sep 17 00:00:00 2001 From: vaclav Date: Wed, 12 Nov 2025 16:52:07 +0100 Subject: [PATCH 1/3] fix position of ivas_destroy_handle_isar() --- lib_dec/lib_dec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index dd72aaa1b..9345f2c49 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -352,11 +352,11 @@ void IVAS_DEC_Close( ( *phIvasDec )->hVoIP = NULL; } - /* destroy Split binaural renderer (ISAR) handle */ - ivas_destroy_handle_isar( &( *phIvasDec )->st_ivas->hSplitBinRend ); - if ( ( *phIvasDec )->st_ivas ) { + /* destroy Split binaural renderer (ISAR) handle */ + ivas_destroy_handle_isar( &( *phIvasDec )->st_ivas->hSplitBinRend ); + ivas_destroy_dec( ( *phIvasDec )->st_ivas ); ( *phIvasDec )->st_ivas = NULL; } -- GitLab From 16e65808fd7ecec97a445213386257d32e293fe9 Mon Sep 17 00:00:00 2001 From: vaclav Date: Wed, 12 Nov 2025 17:15:31 +0100 Subject: [PATCH 2/3] fix inside ivas_destroy_handle_isar() --- lib_dec/lib_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index 9345f2c49..76d79faff 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -5361,10 +5361,10 @@ static void ivas_destroy_handle_isar( { free( ( *hSplitBinRend )->hCldfbDataOut ); ( *hSplitBinRend )->hCldfbDataOut = NULL; + } free( ( *hSplitBinRend ) ); - ( *hSplitBinRend ) = NULL; - } + ( *hSplitBinRend ) = NULL; } return; -- GitLab From 54cdf90422a71fa3927c28080149008c3832d9cb Mon Sep 17 00:00:00 2001 From: vaclav Date: Wed, 12 Nov 2025 17:18:09 +0100 Subject: [PATCH 3/3] clang-format --- lib_dec/lib_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index 76d79faff..6226beca2 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -5363,7 +5363,7 @@ static void ivas_destroy_handle_isar( ( *hSplitBinRend )->hCldfbDataOut = NULL; } - free( ( *hSplitBinRend ) ); + free( ( *hSplitBinRend ) ); ( *hSplitBinRend ) = NULL; } -- GitLab