I'm not sure why we need this - I'm guessing you copied this from LogDialog. 

Can you test with the default destructor and see if the behaviour is the same?