Don't leak palette if freeing screen object
This commit is contained in:
parent
dbb2dbd9ee
commit
261b631ac2
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue