aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJonathan Gray2003-05-01 12:42:46 +0000
committerJonathan Gray2003-05-01 12:42:46 +0000
commit9f9af13a019da8da36a7e0b954f4cb95be8241d0 (patch)
treec98692713adc7c5d6160498908a031ffb451c8ad /backends
parenta2da94d580884712b2cf49f3a368842173c93bbe (diff)
downloadscummvm-rg350-9f9af13a019da8da36a7e0b954f4cb95be8241d0.tar.gz
scummvm-rg350-9f9af13a019da8da36a7e0b954f4cb95be8241d0.tar.bz2
scummvm-rg350-9f9af13a019da8da36a7e0b954f4cb95be8241d0.zip
fix another leak
svn-id: r7245
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/sdl-common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 9c9128abb6..2aff1e4b40 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -1119,6 +1119,7 @@ void OSystem_SDL_Common::setup_icon() {
SDL_Surface *sdl_surf = SDL_CreateRGBSurfaceFrom(icon, 32, 32, 32, 32 * 4, 0xFF0000, 0x00FF00, 0x0000FF, 0xFF000000);
SDL_WM_SetIcon(sdl_surf, (unsigned char *) mask);
+ SDL_FreeSurface(sdl_surf);
}
void *OSystem_SDL_Common::create_mutex(void) {