libspark/audio_mixer: don't try to free() stack-allocated snd_mixer_selem_id

This commit is contained in:
martii
2013-08-14 20:48:09 +02:00
parent 75e5268a3c
commit 86e70db211
2 changed files with 1 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
#include <audio_mixer.h>
mixerVolume::mixerVolume(const char *name, const char *card, long volume) {
sid = NULL;
snd_mixer_selem_id_t *sid = NULL;
elem = NULL;
handle = NULL;
min = 0;
@@ -58,8 +58,6 @@ mixerVolume::~mixerVolume()
{
if (handle)
snd_mixer_close(handle);
if (sid)
snd_mixer_selem_id_free(sid);
}
bool mixerVolume::setVolume(long volume) {