comparison src/video/SDL_bmp.c @ 1329:bc67bbf87818

Seek back to start on error
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Feb 2006 22:01:44 +0000
parents c9b51268668f
children 450721ad5436
comparison
equal deleted inserted replaced
1328:27ddb06a0bca 1329:bc67bbf87818
316 } 316 }
317 } 317 }
318 } 318 }
319 done: 319 done:
320 if ( was_error ) { 320 if ( was_error ) {
321 if ( src ) {
322 SDL_RWseek(src, fp_offset, SEEK_SET);
323 }
321 if ( surface ) { 324 if ( surface ) {
322 SDL_FreeSurface(surface); 325 SDL_FreeSurface(surface);
323 } 326 }
324 surface = NULL; 327 surface = NULL;
325 } 328 }