playlist: Fix a potential memory leak.