I'm developing a libspotify wrapper for C# and am in the process of writing unit tests. As such, I need to repeatedly create sessions, log in, perform actions, log out, release and clean up the session, ready for the next test.
I'm unsure what the correct 'shutdown' procedure for libspotify is. The 'jukebox' example performs no shutdown at all - the main function just exits without calling sp_session_release.
For example, should I turn all callbacks off before releasing? At the moment I get a crash whenever I try to call sp_session_release.
Cheers Tom