Don't leak palette if freeing screen object

This commit is contained in:
Ilari Liusvaara 2012-01-10 01:12:50 +02:00
parent dbb2dbd9ee
commit 261b631ac2

View file

@ -552,6 +552,7 @@ screen::~screen() throw()
{
if(memory && !user_memory)
delete[] memory;
delete[] palette;
}
void clip_range(uint32_t origin, uint32_t size, int32_t base, int32_t& minc, int32_t& maxc) throw()