bbbradsmith / nsfplay

Nintendo NES sound file NSF music player
https://bbbradsmith.github.io/nsfplay/
280 stars 45 forks source link

xgm: detach from config observer when destroying player #32

Closed jprjr closed 4 years ago

jprjr commented 4 years ago

I had a program with a long-running NSFPlayerConfig instance, but my NSFPlayer instance was short-lived. Since the player instance never called DetachObserver, when creating my replacement instance of NSFPlayer, I would get a segfault.