Added more checks to FreeTarget() so targets won't be referenced by the context target after freeing.
Added more checks to FreeTarget() so targets won't be referenced by the context target after freeing.

grimfang4/sdl-gpu,grimfang4/sdl-gpu,grimfang4/sdl-gpu,grimfang4/sdl-gpu