Ah. Clear. Your right. Did update the code.
But i think the destructor of BitcoinGUI never gets called during the runtime.
But yes, the pointer MUST be set to NULL.