enable storing of GnuPG passphrase
[claws.git] / src / main.c
index c27cf00542397fadb4519e34dd9578a072387c58..c74b21ebe7ba22013742aa56c2a6bfa5121973cd 100644 (file)
@@ -47,6 +47,7 @@
 
 #if USE_GPGME
 #  include <gpgme.h>
+#  include "passphrase.h"
 #endif
 
 #include "intl.h"
@@ -414,6 +415,10 @@ void app_will_exit(GtkWidget *widget, gpointer data)
 
        inc_autocheck_timer_remove();
 
+#if USE_GPGME
+        gpgmegtk_free_passphrase();
+#endif
+
        if (prefs_common.clean_on_exit)
                main_window_empty_trash(mainwin, prefs_common.ask_on_clean);