shithub: puzzles

Download patch

ref: f99b527b54fa350e9f281ab5850f45088ff41081
parent: 1dc9cf5811c319e46d01dbb0bf242d806d0a799c
author: Simon Tatham <anakin@pobox.com>
date: Mon Sep 6 11:17:59 EDT 2004

Move the deactivate_timer() call from window_destroy() into
destroy(). I'm not sure how it cured the crash-on-quit bug, since it
was in completely the wrong place!

[originally from svn r4533]

--- a/gtk.c
+++ b/gtk.c
@@ -231,6 +231,8 @@
 
 static void destroy(GtkWidget *widget, gpointer data)
 {
+    frontend *fe = (frontend *)data;
+    deactivate_timer(fe);
     gtk_main_quit();
 }
 
@@ -415,8 +417,6 @@
 
 static void window_destroy(GtkWidget *widget, gpointer data)
 {
-    frontend *fe = (frontend *)data;
-    deactivate_timer(fe);
     gtk_main_quit();
 }