It's a singleton, ... it probably never gets freed during by the app itself.
But i just added this->mainWindow = NULL; in the destructor.