Fixed memory corruption

This commit is contained in:
Pierre Pronchery 2011-04-10 17:25:52 +00:00
parent ec2716768e
commit 543b284564

View File

@ -493,12 +493,6 @@ static int _openmoko_mixer_open(PhonePlugin * plugin)
else if(strcmp(snd_mixer_selem_get_name(elem), "Speaker") == 0
&& snd_mixer_selem_has_playback_volume(elem))
openmoko->mixer_elem_speaker = elem;
if(elem == NULL)
{
_openmoko_mixer_close(plugin);
return -1;
}
openmoko->mixer_elem = elem;
#endif /* __linux__ */
return 0;
}