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 | 4f73e2a0307227c7f33af889e646df8368649219 (patch) | |
tree | 5a797409668c94348638f19c60e0f7ad10e03a8d /src | |
parent | 36e05116ae071429430da08ff100a8b1958cc2a1 (diff) | |
download | openttd-4f73e2a0307227c7f33af889e646df8368649219.tar.xz |
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
Diffstat (limited to 'src')
-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; } |