Seek back to start on error
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401333
This commit is contained in:
parent
2e0199fd76
commit
5372bfd326
1 changed files with 3 additions and 0 deletions
|
@ -318,6 +318,9 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
if ( was_error ) {
|
if ( was_error ) {
|
||||||
|
if ( src ) {
|
||||||
|
SDL_RWseek(src, fp_offset, SEEK_SET);
|
||||||
|
}
|
||||||
if ( surface ) {
|
if ( surface ) {
|
||||||
SDL_FreeSurface(surface);
|
SDL_FreeSurface(surface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue