Fixed: dangling pointer appeared when closes modeless dialog.
Authored by: instructor_ 2015-06-11
Parent: [r3923]
Child: [r3925]