qtdemux: Fix leak of palette_data in error cases