Commit f4a8bf1a authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Adjust fix to cover also the second sanitizer case in issue 1990.

parent 4480d679
Loading
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -734,11 +734,14 @@ cleanup:
        {
            destroy_SetOfHRTF( hSetOfHRTF );
        }
    }

#ifdef FIX_1990_SANITIZER_IN_REVERB_LOAD
    /* This free differs from float version and is done always. This should be safe to do even though we leave a return
     * value as not handled. This is needed as HRTF statistics from ROM are currently converted from float values. */
    IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfStatistics );
    destroy_hrtf_statistics( hHrtfStatistics );
#endif
    }

    IVAS_DEC_Close( &hIvasDec );
    CustomLsReader_close( &hLsCustomReader );