Fixes PSP_DestroyTexture release of data (don't release the SDL_Texture pointer)
authorGabriel Jacobo <gabomdq@gmail.com>
Tue, 23 Apr 2013 16:54:52 -0300
changeset 7096 640f553441e4
parent 7095 79ca4d26d4b3
child 7097 84bbd421d62f
Fixes PSP_DestroyTexture release of data (don't release the SDL_Texture pointer)
src/render/psp/SDL_render_psp.c
--- a/src/render/psp/SDL_render_psp.c	Tue Apr 23 16:44:54 2013 -0300
+++ b/src/render/psp/SDL_render_psp.c	Tue Apr 23 16:54:52 2013 -0300
@@ -990,9 +990,9 @@
 
 	if(psp_texture->data != 0)
 	{
-		free(psp_texture->data);
+		SDL_free(psp_texture->data);
 	}
-	free(texture);
+	SDL_free(psp_texture);
 	texture->driverdata = NULL;
 }