author | Sam Lantinga <slouken@libsdl.org> |
Sun, 25 Jul 2004 18:43:07 +0000 | |
changeset 915 | 01cddd0f2efb |
parent 914 | bbf8dcc8aed6 |
child 916 | 46916168361d |
--- a/src/video/SDL_surface.c Sun Jul 25 18:31:50 2004 +0000 +++ b/src/video/SDL_surface.c Sun Jul 25 18:43:07 2004 +0000 @@ -901,6 +901,9 @@ if ( --surface->refcount > 0 ) { return; } + while ( surface->locked > 0 ) { + SDL_UnlockSurface(surface); + } if ( (surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL ) { SDL_UnRLESurface(surface, 0); }