diff mcabber/src/main.c @ 1307:6c116207ab2e

Work around segfault in otrl_userstate_free() It only occurs when SSL is enabled and mcabber is linked to libgnutls. Seems to be a problem in libgcrypt when both libotr and libgnutls use it.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 09 Sep 2007 17:44:34 +0200
parents 3b338a5c01fc
children 0dda8238af21
line wrap: on
line diff
--- a/mcabber/src/main.c	Sun Sep 09 13:24:40 2007 +0200
+++ b/mcabber/src/main.c	Sun Sep 09 17:44:34 2007 +0200
@@ -471,6 +471,7 @@
     }
   }
 
+  scr_TerminateCurses();
 #ifdef HAVE_LIBOTR
   otr_terminate();
 #endif
@@ -478,7 +479,6 @@
 #ifdef HAVE_GPGME
   gpg_terminate();
 #endif
-  scr_TerminateCurses();
 #ifdef HAVE_ASPELL_H
   /* Deinitialize aspell */
   if (settings_opt_get_int("aspell_enable")) {