Commit 7dd47044 authored by Jan Brouwer's avatar Jan Brouwer
Browse files

added destroy_hrtf_statistics() in cleanup sections of decoder.c and renderer.c

parent 0eb861f0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1048,6 +1048,10 @@ cleanup:
        destroy_SetOfHRTF( hSetOfHRTF );
#else
        destroy_SetOfHRTF( *hSetOfHRTF );
#endif
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
        IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfStatistics );
        destroy_hrtf_statistics( hHrtfStatistics );
#endif
    }

+3 −0
Original line number Diff line number Diff line
@@ -2332,6 +2332,9 @@ cleanup:
#ifdef NONBE_FIX_BINARY_BINAURAL_READING
    destroy_td_hrtf( hHrtfTD );
    destroy_SetOfHRTF( hSetOfHRTF );
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
    destroy_hrtf_statistics( hHrtfStatistics );
#endif
#endif
    IVAS_REND_Close( &hIvasRend );
    IsmPositionProvider_close( positionProvider );