]> git.alsa-project.org Git - alsa-lib.git/commit
topology: move the elem->list delete to tplg_elem_free()
authorJaroslav Kysela <perex@perex.cz>
Fri, 3 Jan 2020 21:07:11 +0000 (22:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Jan 2020 22:38:08 +0000 (23:38 +0100)
commitcb88813ff71226af5d16f8853d186ff7c572dbe0
tree5b3f8243d6f03f815efcd44f26bfce8ea4891350
parentb6c9afb4f59bb678dc834028680d579f47dc273b
topology: move the elem->list delete to tplg_elem_free()

The tplg_elem_free() is called in the error path from many places
and it is expected that the element object will be unregistered
from the tplg structure, too.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/elem.c