The fIcon bitmap is owned by the BAMResourc
Added output to see which resource is being deleted
Turns out we already call Acquire() on ResourceManager::Load()
Use clear() instead of erase()
Don't keep a global variable for the GUI. Initialize the pointer
lazily on Default() and use the new Destroy() method to delete it.
Modify debug output
Delete windows correctly
Use clear()
Delete resources when the refcount becomes 0
Reorder deletions. Note that there is a crashing bug due to a double
free or corrupt memory access.