Commit 7b01eae7 authored by emerit's avatar emerit
Browse files

Merge branch...

Merge branch '1077-missing-memory-test-in-destroy_hrtf_statistics-function-in-hrtf_file_reader-c' into 'main'

Resolve "missing memory test in destroy_hrtf_statistics function in hrtf_file_reader.c"

See merge request !1529
parents 30f763ad 9052c62c
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -159,6 +159,8 @@
#define FIX_NUM_SUBFRAME_UPDATE

#define FIX_1053_REVERB_RECONFIGURATION                 /* Philips: issue 1053: fix for dynamic switching of acoustic environment */

#define FIX_1077_MEMORY_TEST_MISSING                    /* orange: issue 1077 : add missing memory test*/
#define FIX_1081_BINAURAL_SPLIT_PCM_SANITY_CHECK        /* VA: issue 1081: correct error print-out when BINAURAL_SPLIT_PCM is requested */

/* #################### End BE switches ################################## */
+4 −0
Original line number Diff line number Diff line
@@ -1860,7 +1860,11 @@ ivas_error destroy_hrtf_statistics(
    IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle  */
)
{
#ifdef FIX_1077_MEMORY_TEST_MISSING
    if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) && ( ( *hHrtfStatistics )->fromROM == FALSE ) )
#else
    if ( hHrtfStatistics != NULL && ( *hHrtfStatistics )->fromROM == FALSE )
#endif
    {
        free( ( *hHrtfStatistics )->average_energy_l );
        free( ( *hHrtfStatistics )->average_energy_r );