fix memory leak (which also fixes crashes from events that were triggered after the message box is destroyed)
Merge pull request #38 from seandepagnier/SOC2014_QT

Fix memory leak and segv fault in dialog dtor

Thanks seandepagnier for the patch