summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-27 16:41:37 +0000
committerrubidium <rubidium@openttd.org>2007-06-27 16:41:37 +0000
commit45ae73e03f607ad7c581c08704776143e170adae (patch)
tree5a797409668c94348638f19c60e0f7ad10e03a8d /src/blitter
parent0c8ca15c18692fb720d5054da2b9ce8308960cc2 (diff)
downloadopenttd-45ae73e03f607ad7c581c08704776143e170adae.tar.xz
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/8bpp_optimized.cpp1
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;
}