mirror of https://github.com/OpenTTD/OpenTTD
(svn r27575) -Fix [FS#6404]: Memory leak when disabling palette animation. (JGR)
parent
c0c1a4cded
commit
914d4616ca
|
@ -20,6 +20,11 @@
|
||||||
/** Instantiation of the 32bpp with animation blitter factory. */
|
/** Instantiation of the 32bpp with animation blitter factory. */
|
||||||
static FBlitter_32bppAnim iFBlitter_32bppAnim;
|
static FBlitter_32bppAnim iFBlitter_32bppAnim;
|
||||||
|
|
||||||
|
Blitter_32bppAnim::~Blitter_32bppAnim()
|
||||||
|
{
|
||||||
|
free(this->anim_buf);
|
||||||
|
}
|
||||||
|
|
||||||
template <BlitterMode mode>
|
template <BlitterMode mode>
|
||||||
inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom)
|
inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,6 +29,8 @@ public:
|
||||||
anim_buf_height(0)
|
anim_buf_height(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
~Blitter_32bppAnim();
|
||||||
|
|
||||||
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
|
||||||
/* virtual */ void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
|
/* virtual */ void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal);
|
||||||
/* virtual */ void SetPixel(void *video, int x, int y, uint8 colour);
|
/* virtual */ void SetPixel(void *video, int x, int y, uint8 colour);
|
||||||
|
|
Loading…
Reference in New Issue