Commit b79e0feb authored by Vidhya V P's avatar Vidhya V P
Browse files

Minor changes

parent 49a28ccf
Loading
Loading
Loading
Loading
+15 −25
Original line number Diff line number Diff line
@@ -1006,7 +1006,6 @@ ivas_error ivas_dirac_dec_config(
                        free( hDirAC->azimuth[i] );
                        hDirAC->azimuth[i] = NULL;
                    }

                    if ( hDirAC->elevation[i] != NULL )
                    {
                        free( hDirAC->elevation[i] );
@@ -1017,6 +1016,21 @@ ivas_error ivas_dirac_dec_config(
                        free( hDirAC->diffuseness_vector[i] );
                        hDirAC->diffuseness_vector[i] = NULL;
                    }
                    if ( hDirAC->energy_ratio1[i] != NULL )
                    {
                        free( hDirAC->energy_ratio1[i] );
                        hDirAC->energy_ratio1[i] = NULL;
                    }
                    if ( hDirAC->spreadCoherence[i] != NULL )
                    {
                        free( hDirAC->spreadCoherence[i] );
                        hDirAC->spreadCoherence[i] = NULL;
                    }
                    if ( hDirAC->surroundingCoherence[i] != NULL )
                    {
                        free( hDirAC->surroundingCoherence[i] );
                        hDirAC->surroundingCoherence[i] = NULL;
                    }
                }
                if ( hDirAC->azimuth != NULL )
                {
@@ -1035,40 +1049,16 @@ ivas_error ivas_dirac_dec_config(
                }
                if ( hDirAC->energy_ratio1 != NULL )
                {
                    for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ )
                    {
                        if ( hDirAC->energy_ratio1[i] != NULL )
                        {
                            free( hDirAC->energy_ratio1[i] );
                            hDirAC->energy_ratio1[i] = NULL;
                        }
                    }
                    free( hDirAC->energy_ratio1 );
                    hDirAC->energy_ratio1 = NULL;
                }
                if ( hDirAC->spreadCoherence != NULL )
                {
                    for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ )
                    {
                        if ( hDirAC->spreadCoherence[i] != NULL )
                        {
                            free( hDirAC->spreadCoherence[i] );
                            hDirAC->spreadCoherence[i] = NULL;
                        }
                    }
                    free( hDirAC->spreadCoherence );
                    hDirAC->spreadCoherence = NULL;
                }
                if ( hDirAC->surroundingCoherence != NULL )
                {
                    for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ )
                    {
                        if ( hDirAC->surroundingCoherence[i] != NULL )
                        {
                            free( hDirAC->surroundingCoherence[i] );
                            hDirAC->surroundingCoherence[i] = NULL;
                        }
                    }
                    free( hDirAC->surroundingCoherence );
                    hDirAC->surroundingCoherence = NULL;
                }