Commit f4bc412c authored by multrus's avatar multrus
Browse files

fix memory leak

parent bf2ee6cf
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -367,6 +367,11 @@ void ivas_initialize_handles_enc(
    st_ivas->hOMasa = NULL;
#endif

#ifdef SBA_AND_OBJECTS
    /* OSBA handle */
    st_ivas->hOSba = NULL;
#endif

    return;
}

@@ -1189,6 +1194,11 @@ void ivas_destroy_enc(
    ivas_omasa_enc_close( &( st_ivas->hOMasa ) );
#endif

#ifdef SBA_AND_OBJECTS
    /* OSBA handle */
    ivas_osba_enc_close( &( st_ivas->hOSba ) );
#endif

    /* Stereo downmix for EVS encoder handle */
    stereo_dmx_evs_close_encoder( &( st_ivas->hStereoDmxEVS ) );