Commit f1136a8c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Fix a couple of object leak in the equalizer.

parent 3ff7b962
...@@ -52,8 +52,10 @@ static void ChangeFiltersString( intf_thread_t *p_intf, ...@@ -52,8 +52,10 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
vlc_object_t *p_object = vlc_object_find( p_intf, vlc_object_t *p_object = vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE ); VLC_OBJECT_AOUT, FIND_ANYWHERE );
aout_instance_t *p_aout = (aout_instance_t *)p_object; aout_instance_t *p_aout = (aout_instance_t *)p_object;
if( p_object == NULL ) if( !p_object )
{
p_object = (vlc_object_t *)pl_Yield( p_intf ); p_object = (vlc_object_t *)pl_Yield( p_intf );
}
psz_string = var_GetNonEmptyString( p_object, "audio-filter" ); psz_string = var_GetNonEmptyString( p_object, "audio-filter" );
...@@ -72,6 +74,7 @@ static void ChangeFiltersString( intf_thread_t *p_intf, ...@@ -72,6 +74,7 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
} }
else else
{ {
vlc_object_release( p_object );
return; return;
} }
} }
...@@ -90,8 +93,9 @@ static void ChangeFiltersString( intf_thread_t *p_intf, ...@@ -90,8 +93,9 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
} }
else else
{ {
free( psz_string ); free( psz_string );
return; vlc_object_release( p_object );
return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment