[[ Bug 13804 ]] Crash freeing invalid palette struct