src/render/SDL_yuv_sw.c
changeset 6490 d2d8576aa3a0
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
--- a/src/render/SDL_yuv_sw.c	Fri Sep 28 02:33:42 2012 -0700
+++ b/src/render/SDL_yuv_sw.c	Fri Sep 28 02:43:13 2012 -0700
@@ -1044,6 +1044,7 @@
     case SDL_PIXELFORMAT_YVYU:
         break;
     default:
+        SDL_SW_DestroyYUVTexture(swdata);
         SDL_SetError("Unsupported YUV format");
         return NULL;
     }