ASoC:topology:delete dynamic object during widget remove

remove the dynamic object during the topology free stage.
to avoid multi remove operation.

Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
This commit is contained in:
Wu Zhigang 2018-09-10 17:26:49 +08:00 committed by Pierre-Louis Bossart
parent 4c10c44636
commit d28e9af0a5

View File

@ -491,6 +491,7 @@ static void remove_widget(struct snd_soc_component *comp,
}
free_news:
list_del(&dobj->list);
kfree(w->kcontrol_news);
/* widget w is freed by soc-dapm.c */