Fixed memory leak in software YUV stretch code
authorSam Lantinga <slouken@lokigames.com>
Fri, 27 Apr 2001 20:25:25 +0000
changeset 9a1c15fa4abb9
parent 8 5574376c451d
child 10 ee3bb7cd06b5
Fixed memory leak in software YUV stretch code
src/video/SDL_yuv_sw.c
     1.1 --- a/src/video/SDL_yuv_sw.c	Fri Apr 27 16:56:47 2001 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Fri Apr 27 20:25:25 2001 +0000
     1.3 @@ -1299,6 +1299,9 @@
     1.4  
     1.5  	swdata = overlay->hwdata;
     1.6  	if ( swdata ) {
     1.7 +		if ( swdata->stretch ) {
     1.8 +			SDL_FreeSurface(swdata->stretch);
     1.9 +		}
    1.10  		if ( swdata->pixels ) {
    1.11  			free(swdata->pixels);
    1.12  		}