playlist: Fix a potential memory leak.
Merge pull request #941 from lioncash/leak

playlist: Fix a potential memory leak.