mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r10355) -Fix (r10092): memory leak when encoding (reading) sprites.
This commit is contained in:
parent
0c8ca15c18
commit
45ae73e03f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue