Changeset - r22380:d8fcdcfd6f97
[Not reviewed]
master
0 2 0
frosch - 8 years ago 2016-05-22 10:28:57
frosch@openttd.org
(svn r27575) -Fix [FS#6404]: Memory leak when disabling palette animation. (JGR)
2 files changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim.cpp
Show inline comments
 
@@ -20,6 +20,11 @@
 
/** Instantiation of the 32bpp with animation blitter factory. */
 
static FBlitter_32bppAnim iFBlitter_32bppAnim;
 

	
 
Blitter_32bppAnim::~Blitter_32bppAnim()
 
{
 
	free(this->anim_buf);
 
}
 

	
 
template <BlitterMode mode>
 
inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom)
 
{
src/blitter/32bpp_anim.hpp
Show inline comments
 
@@ -29,6 +29,8 @@ public:
 
		anim_buf_height(0)
 
	{}
 

	
 
	~Blitter_32bppAnim();
 

	
 
	/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
 
	/* virtual */ void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
 
	/* virtual */ void SetPixel(void *video, int x, int y, uint8 colour);
0 comments (0 inline, 0 general)