Finalise bitmap code last as purging the cache needs it

This commit is contained in:
Chris Young 2016-12-11 15:24:56 +00:00
parent 34a587849c
commit 433418a8e9

View File

@ -3065,14 +3065,12 @@ static void gui_quit(void)
ami_clipboard_free();
ami_schedule_free();
ami_object_fini();
FreeSysObject(ASOT_PORT, appport);
FreeSysObject(ASOT_PORT, sport);
FreeSysObject(ASOT_PORT, schedulermsgport);
ami_object_fini();
ami_bitmap_fini();
LOG("Closing screen");
ami_gui_close_screen(scrn, locked_screen, FALSE);
if(nsscreentitle) FreeVec(nsscreentitle);
@ -5775,6 +5773,7 @@ int main(int argc, char** argv)
ami_memory_fini(memhandler);
#endif
ami_bitmap_fini();
ami_libs_close();
return RETURN_OK;