mirror of
https://github.com/yawut/SDL.git
synced 2026-03-21 17:34:36 -05:00
Fixed memory leak in an error case
This commit is contained in:
parent
779e3bdeb6
commit
f02003f0ba
|
|
@ -1044,6 +1044,7 @@ SDL_SW_CreateYUVTexture(Uint32 format, int w, int h)
|
|||
case SDL_PIXELFORMAT_YVYU:
|
||||
break;
|
||||
default:
|
||||
SDL_SW_DestroyYUVTexture(swdata);
|
||||
SDL_SetError("Unsupported YUV format");
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user