IMG_bmp.c
changeset 118 c5e736a47ad2
parent 117 e613cf987897
child 121 1bf9c0c87374
equal deleted inserted replaced
117:e613cf987897 118:c5e736a47ad2
   420 			}
   420 			}
   421 		}
   421 		}
   422 	}
   422 	}
   423 done:
   423 done:
   424 	if ( was_error ) {
   424 	if ( was_error ) {
       
   425 		if ( src ) {
       
   426 			SDL_RWseek(src, fp_offset, SEEK_SET);
       
   427 		}
   425 		if ( surface ) {
   428 		if ( surface ) {
   426 			SDL_FreeSurface(surface);
   429 			SDL_FreeSurface(surface);
   427 		}
   430 		}
   428 		surface = NULL;
   431 		surface = NULL;
   429 	}
   432 	}