[pan2] Fix: closing Pan without server config (Bug: 729329)



commit fefda68ddb1b0970a8d5f221c7200b2553ac6d1a
Author: Detlef Graef <detlef graef yahoo de>
Date:   Sun Apr 17 13:00:07 2016 +0200

    Fix: closing Pan without server config (Bug: 729329)

 pan/gui/pan.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 40aedb9..91d1030 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -1132,6 +1132,8 @@ main (int argc, char *argv[])
 #endif
 
 #ifdef HAVE_GKR
+  if (!data.get_servers().empty())
+  {
     // free secure passwords
     foreach(quarks_t, data.get_servers(), it)
     {
@@ -1141,6 +1143,7 @@ main (int argc, char *argv[])
         gnome_keyring_memory_free(s->gkr_pw);
       }
     }
+  }
 #endif
   }
 


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