From 45ae73e03f607ad7c581c08704776143e170adae Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 27 Jun 2007 16:41:37 +0000 Subject: (svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites. --- src/blitter/8bpp_optimized.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-70-g09d2