Commit 4d2c0ec1 authored by emerit's avatar emerit
Browse files

fix sanitizer fail

parent ed355697
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -791,7 +791,10 @@ cleanup:
    {
#ifdef FIX_CREND_SIMPLIFY_CODE
        destroy_td_hrtf( hHrtfBinary.hHrtfTD );
        if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
        {
            destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics );
        }
#else
        IVAS_DEC_GetHrtfHandle( hIvasDec, &hHrtfTD );
        if ( hHrtfTD != NULL )
@@ -814,7 +817,10 @@ cleanup:
     * value as not handled. This is needed as HRTF statistics from ROM are currently converted from float values. */
#ifdef FIX_CREND_SIMPLIFY_CODE
    IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfBinary.hHrtfStatistics );
    if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
    {
        destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics );
    }
#else
    IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfStatistics );
    destroy_hrtf_statistics( hHrtfStatistics );
+4 −0
Original line number Diff line number Diff line
@@ -2178,6 +2178,10 @@ cleanup:
        destroy_td_hrtf( hHrtfTD );
    }
#endif
    if ( args.outConfig.audioConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
    {
        destroy_hrtf_statistics( hHrtfStatistics );
    }
    destroy_hrtf_statistics( hHrtfStatistics );
    IVAS_REND_Close( &hIvasRend );
    IsmPositionProvider_close( positionProvider );
+0 −4
Original line number Diff line number Diff line
@@ -3515,11 +3515,7 @@ void destroy_hrtf_statistics(
    IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle  */
)
{
#ifdef USE_REVERB_16BIT_ROM
    if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) && ( ( *hHrtfStatistics )->fromROM == FALSE ) )
#else
    if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) )
#endif
    {
        if ( ( *hHrtfStatistics )->average_energy_l_dyn != NULL )
        {