comparison 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
comparison
equal deleted inserted replaced
8:5574376c451d 9:a1c15fa4abb9
1297 { 1297 {
1298 struct private_yuvhwdata *swdata; 1298 struct private_yuvhwdata *swdata;
1299 1299
1300 swdata = overlay->hwdata; 1300 swdata = overlay->hwdata;
1301 if ( swdata ) { 1301 if ( swdata ) {
1302 if ( swdata->stretch ) {
1303 SDL_FreeSurface(swdata->stretch);
1304 }
1302 if ( swdata->pixels ) { 1305 if ( swdata->pixels ) {
1303 free(swdata->pixels); 1306 free(swdata->pixels);
1304 } 1307 }
1305 if ( swdata->colortab ) { 1308 if ( swdata->colortab ) {
1306 free(swdata->colortab); 1309 free(swdata->colortab);