ebiguy / RespeQt

RespeQt Atari serial peripheral emulator
GNU General Public License v2.0
31 stars 16 forks source link

Fix crash from double call to closeEvent #46

Closed josch1710 closed 7 years ago

josch1710 commented 7 years ago

At least on OSX, closeEvent gets called two times. This leads to invalid access crash on application exit. This happens, because the pointer textPrinterWindow and docDisplayWindow are already released on second call, but the original values is still there. The easy fix for this issue is setting the released pointers to NULL, so that delete doesn't crash.

jzatarski commented 7 years ago

sounds good to me.