alsa-lib/src/control
Takashi Iwai e1c7dd2613 Fix corruption after snd_device_name_hint()
snd_device_name_hint() corrupts the config name space after its call.
This results in the error from the suceeding calls of snd_pcm_open()
after snd_device_name_hint().

The bug is in try_config() in namehint.c; it calls snd_config_delete(res)
but res can be two different objects in the function.  One is the object
obtained via snd_config_search_definition(), and another is the one from
snd_config_search_alias_hooks().  The former is the expanded objects,
thus it should be freed.  But, the latter is a reference, and must not be
freed.

This patch adds the check to free or not.

Reported-by: John Lindgren <john.lindgren@tds.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-11-03 09:02:39 +01:00
..
cards.c Fix breakage of snd_card_load() 2009-06-09 04:45:18 +02:00
control.c control: Remove unused variable. 2009-09-30 08:21:53 +02:00
control_ext.c fix doc errors 2009-08-04 09:17:20 +02:00
control_hw.c Make seq, rawmidi and control operation structures static const. 2008-11-21 20:28:38 +01:00
control_local.h Make seq, rawmidi and control operation structures static const. 2008-11-21 20:28:38 +01:00
control_shm.c Make seq, rawmidi and control operation structures static const. 2008-11-21 20:28:38 +01:00
control_symbols.c Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
hcontrol.c hcontrol: fix compare_default function to handle also id.device and id.subdevice 2009-10-06 10:46:54 +02:00
Makefile.am Export dB conversion helper functions 2007-10-24 13:04:14 +02:00
namehint.c Fix corruption after snd_device_name_hint() 2009-11-03 09:02:39 +01:00
setup.c Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
tlv.c fix doc errors 2009-08-04 09:17:20 +02:00