aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-09-06 15:17:59 +0000
committerSimon Tatham <anakin@pobox.com>2004-09-06 15:17:59 +0000
commitf99b527b54fa350e9f281ab5850f45088ff41081 (patch)
tree132c61470f811b590c648b38862a2ca4215a2526
parent1dc9cf5811c319e46d01dbb0bf242d806d0a799c (diff)
downloadpuzzles-f99b527b54fa350e9f281ab5850f45088ff41081.zip
puzzles-f99b527b54fa350e9f281ab5850f45088ff41081.tar.gz
puzzles-f99b527b54fa350e9f281ab5850f45088ff41081.tar.bz2
puzzles-f99b527b54fa350e9f281ab5850f45088ff41081.tar.xz
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]
-rw-r--r--gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk.c b/gtk.c
index 9643d19..72fdcdd 100644
--- a/gtk.c
+++ b/gtk.c
@@ -231,6 +231,8 @@ void end_draw(frontend *fe)
static void destroy(GtkWidget *widget, gpointer data)
{
+ frontend *fe = (frontend *)data;
+ deactivate_timer(fe);
gtk_main_quit();
}
@@ -415,8 +417,6 @@ void activate_timer(frontend *fe)
static void window_destroy(GtkWidget *widget, gpointer data)
{
- frontend *fe = (frontend *)data;
- deactivate_timer(fe);
gtk_main_quit();
}