Reset music pointer to NULL after freeing and prevent double-free

Fixes #1146