Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed memory leak in software YUV stretch code
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
src/video/SDL_yuv_sw.c
|
@@ -1299,6 +1299,9 @@ void SDL_FreeYUV_SW(_THIS, SDL_Overlay *overlay) |
|
|
|
|
|
swdata = overlay->hwdata; |
|
|
if ( swdata ) { |
|
|
if ( swdata->stretch ) { |
|
|
SDL_FreeSurface(swdata->stretch); |
|
|
} |
|
|
if ( swdata->pixels ) { |
|
|
free(swdata->pixels); |
|
|
} |
|
|