Skip to content
Permalink
Browse files

Seek back to start on error

  • Loading branch information
slouken committed Feb 4, 2006
1 parent b967640 commit da7ad9a7a1f36f915ca3dfdb0ab06856ebb8d3c2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/SDL_bmp.c
@@ -318,6 +318,9 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
}
done:
if ( was_error ) {
if ( src ) {
SDL_RWseek(src, fp_offset, SEEK_SET);
}
if ( surface ) {
SDL_FreeSurface(surface);
}

0 comments on commit da7ad9a

Please sign in to comment.