Commit c52f4737 authored by emerit's avatar emerit
Browse files

fix bug

parent 4394797c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -538,6 +538,11 @@ cleanup:
        IVAS_DEC_HRTF_HANDLE hHrtfTD;
        IVAS_DEC_GetHrtfHandle( hIvasDec, &hHrtfTD );
        dealloc_HRTF_binary( hHrtfTD );
#ifdef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
        IVAS_DEC_HRTF_CREND_HANDLE hSetOfHRTF;
        IVAS_DEC_GetHrtfCRendHandle( hIvasDec, &hSetOfHRTF );
        destroy_SetOfHRTF( hSetOfHRTF );
#endif
    }
    IVAS_DEC_Close( &hIvasDec );
    CustomLsReader_close( &hLsCustomReader );
+3 −4
Original line number Diff line number Diff line
@@ -40,9 +40,6 @@
#include "ivas_rom_TdBinauralRenderer.h"
#include "ivas_error.h"
#include "wmc_auto.h"
#ifdef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
#include "hrtf_file_reader.h"
#endif

/*-------------------------------------------------------------------*
 * Local constants
@@ -303,7 +300,9 @@ void ivas_HRTF_CRend_binary_close(
        return;
    }

    destroy_SetOfHRTF( *hSetOfHRTF );
#ifndef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
    destroy_SetOfHRTF( hSetOfHRTF );
#endif

    free( *hSetOfHRTF );
    *hSetOfHRTF = NULL;