diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-09-06 15:17:59 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-09-06 15:17:59 +0000 |
| commit | f99b527b54fa350e9f281ab5850f45088ff41081 (patch) | |
| tree | 132c61470f811b590c648b38862a2ca4215a2526 | |
| parent | 1dc9cf5811c319e46d01dbb0bf242d806d0a799c (diff) | |
| download | puzzles-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); } |