public void destroy ( ) { if ( mIsClosed ) { return ; } if ( mState != STATE_STOPPED ) { mDestroyDelayed = true ; return ; } mIsClosed = true ; PlaybackService . unregisterListener ( getContext ( ) , mInternalListener ) ; mInternalListener = null ; mApplicationContext . clear ( ) ; mApplicationContext = null ; mClientKey = null ; mPlayerPlaylist = null ; mCheerleaderPlayerListeners . clear ( ) ; }
Release resources associated with the player .