Commit 5372bfd3 authored by Sam Lantinga's avatar Sam Lantinga

Seek back to start on error

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401333
parent 2e0199fd
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment