GNOME Bugzilla – Bug 725568
Crashes when cancelling the Quit confirmation dialog and then running again
Last modified: 2014-03-03 16:54:24 UTC
As reported by Igor Gnatenko, EasyTAG can be made to crash quite easily when quitting. Steps to reproduce: 1. start the application 2. quit the application (making sure that the confirmation dialogue is enabled) 3. cancel the confirmation dialogue with Escape 4. repeat steps 2 and 3 until the window is closed, and EasyTAG remains running 5. start another instance of EasyTAG 6. the first instance segfaults
One critical bit of information that I missed from the initial bug report is that, in step 2, the window close button must be pressed to quit the application, which triggers a "delete-event" signal. The handler for this signal in EasyTAG is not correct, as it should return a gboolean which determines whether to continue or to stop propagation of the event. As it returns void, whether the event is propagated is down to chance, and when it does the default handler is invoked and the main window is destroyed. I fixed this in master as 5442958d1ea34a992007bbb2bc047a9a5515387d.