diff options
author | rubidium <rubidium@openttd.org> | 2007-06-27 16:41:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-27 16:41:37 +0000 |
commit | 45ae73e03f607ad7c581c08704776143e170adae (patch) | |
tree | 5a797409668c94348638f19c60e0f7ad10e03a8d | |
parent | 0c8ca15c18692fb720d5054da2b9ce8308960cc2 (diff) | |
download | openttd-45ae73e03f607ad7c581c08704776143e170adae.tar.xz |
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
-rw-r--r-- | src/blitter/8bpp_optimized.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blitter/8bpp_optimized.cpp b/src/blitter/8bpp_optimized.cpp index 802ee8c82..8287035e8 100644 --- a/src/blitter/8bpp_optimized.cpp +++ b/src/blitter/8bpp_optimized.cpp @@ -197,6 +197,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, Blitter::All dest_sprite->x_offs = sprite->x_offs; dest_sprite->y_offs = sprite->y_offs; memcpy(dest_sprite->data, temp_dst, index); + free(temp_dst); return dest_sprite; } |