add: delete g_BusyCursor; g_BusyCursor = NULL;
context: ABSApp::~ABSApp (){  status_t ErrorCode;  char     ErrorMessage [PATH_MAX + 1024];  if (m_SettingsHaveChanged)    LoadSaveSettings (false /* DoLoad */);  if ((ErrorCode = SaveDatabaseIfNeeded (ErrorMessage)) != B_OK)    DisplayErrorMessage (ErrorMessage, ErrorCode, "Exiting Error");}