Ok. It is true. The engine frees all its structs at closing time. But 'ptr_remove' does not remove the bitmaps pointed by its elements. Take a look at this:

Code:
#include <acknex.h>

void main () {
	wait(3);
	
	PANEL *_pan = pan_create("flags=SHOW", 1);
	_pan->bmap = bmap_createblack(128, 128, 24);
	bmap_fill(_pan->bmap, COLOR_RED, 100);
	
	while(!key_esc)
		wait(1);
	
	//bmap_remove(_pan->bmap);
	ptr_remove(_pan);
	
	while(key_esc){
		DEBUG_BMAP(_pan->bmap, 1, 1);
		wait(1);
	}
		
	sys_exit(NULL);
}



If you don't delete the bitmap before 'ptr_remove', it remains in the graphics card, so it is not deleted. Forgive the tricky thing of accesing hypothetically released memory wink