[geary] Crash on exit: Bug #744522



commit 7e54a970b9344a93929326b17ec3bf7d1314deab
Author: Jim Nelson <jim yorba org>
Date:   Tue Feb 24 16:21:25 2015 -0800

    Crash on exit: Bug #744522
    
    Date unit should only be terminated after Gtk.main_quit().

 src/client/application/geary-application.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index 3b896e8..672ddb8 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -59,8 +59,6 @@ public class GearyApplication : Gtk.Application {
      * an exit, a callback should return true.
      */
     public virtual signal bool exiting(bool panicked) {
-        Date.terminate();
-        
         return true;
     }
     
@@ -346,6 +344,8 @@ public class GearyApplication : Gtk.Application {
             Gtk.main_quit();
         else
             Posix.exit(exitcode);
+        
+        Date.terminate();
     }
     
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]