mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
topology: Use the generic pointer to free an element's object
The element is a wrapper for different types of objects.So use the generic pointer 'obj' instead of the type-specific pointer to free the object. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
503a285ed6
commit
374c5fa9c5
1 changed files with 2 additions and 2 deletions
|
|
@ -83,8 +83,8 @@ void tplg_elem_free(struct tplg_elem *elem)
|
|||
/* free struct snd_tplg_ object,
|
||||
* the union pointers share the same address
|
||||
*/
|
||||
if (elem->mixer_ctrl)
|
||||
free(elem->mixer_ctrl);
|
||||
if (elem->obj)
|
||||
free(elem->obj);
|
||||
|
||||
free(elem);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue