playlist: Fix use after free
commit70174a131ac045b33a8db417e7c626ec67cb0f53
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 14 Feb 2018 11:28:17 +0000 (14 12:28 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 14 Feb 2018 11:33:52 +0000 (14 12:33 +0100)
tree2f7a9c6fe4da9848da5bb488a601e67eccb2d54c
parent581bd93a578720599b29c6c1173b4e23575f26a2
playlist: Fix use after free

Nodes shouldn't be inserted in the playlist item array. ChangeToNode is
expected to remove it, but in case the item is created as a node, it
would still lay there, causing potential use after free.

Fix #19701
src/playlist/item.c