spotify/cocoalibspotify — Issue #19: EXC_BAD_ACCESS if sp_session_create() fails
Author: n1mda
Created: 2011-10-27 16:09:12+00:00
State: open

In initWithApplicationKey:userAgent:error: sp_session_create() is called, but if it fails (createError != SP_ERROR_OK) session is set to NULL and SPSession calls [self release];

dealloc calls [self unloadPlayback], which in turn calls setPlaying that tries to access session, which is NULL.

Probable fix is to not set session to NULL and let dealloc do that?