diff src/video/SDL_yuv_sw.c @ 9:a1c15fa4abb9

Fixed memory leak in software YUV stretch code
author Sam Lantinga <slouken@lokigames.com>
date Fri, 27 Apr 2001 20:25:25 +0000
parents 74212992fb08
children e8157fcb3114
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c	Fri Apr 27 16:56:47 2001 +0000
+++ b/src/video/SDL_yuv_sw.c	Fri Apr 27 20:25:25 2001 +0000
@@ -1299,6 +1299,9 @@
 
 	swdata = overlay->hwdata;
 	if ( swdata ) {
+		if ( swdata->stretch ) {
+			SDL_FreeSurface(swdata->stretch);
+		}
 		if ( swdata->pixels ) {
 			free(swdata->pixels);
 		}