Commit d3a53d25 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Apparent memleak (ipkiss should review perhaps?)

parent 1d6c495f
...@@ -250,7 +250,7 @@ void VlcProc::CmdManage::execute() ...@@ -250,7 +250,7 @@ void VlcProc::CmdManage::execute()
void VlcProc::refreshAudio() void VlcProc::refreshAudio()
{ {
char *pFilters = NULL; char *pFilters;
// Check if the audio output has changed // Check if the audio output has changed
aout_instance_t *pAout = (aout_instance_t *)vlc_object_find( getIntf(), aout_instance_t *pAout = (aout_instance_t *)vlc_object_find( getIntf(),
...@@ -270,7 +270,7 @@ void VlcProc::refreshAudio() ...@@ -270,7 +270,7 @@ void VlcProc::refreshAudio()
} }
} }
// Get the audio filters // Get the audio filters
pFilters = var_GetString( pAout, "audio-filter" ); pFilters = var_GetNonEmptyString( pAout, "audio-filter" );
vlc_object_release( pAout ); vlc_object_release( pAout );
} }
else else
...@@ -292,6 +292,7 @@ void VlcProc::refreshAudio() ...@@ -292,6 +292,7 @@ void VlcProc::refreshAudio()
// Refresh the equalizer variable // Refresh the equalizer variable
VarBoolImpl *pVarEqualizer = (VarBoolImpl*)m_cVarEqualizer.get(); VarBoolImpl *pVarEqualizer = (VarBoolImpl*)m_cVarEqualizer.get();
pVarEqualizer->set( pFilters && strstr( pFilters, "equalizer" ) ); pVarEqualizer->set( pFilters && strstr( pFilters, "equalizer" ) );
free( pFilters );
} }
void VlcProc::refreshPlaylist() void VlcProc::refreshPlaylist()
......
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