[pan2/osx: 1/3] quick fix for gnome-keyring



commit c418a6e80d069fac8f820427be9d2821e187db50
Author: Heinrich MÃller <henmull src gnome org>
Date:   Fri Jan 13 01:11:18 2012 +0100

    quick fix for gnome-keyring

 pan/data-impl/data-impl.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pan/data-impl/data-impl.cc b/pan/data-impl/data-impl.cc
index 60e76b5..f290035 100644
--- a/pan/data-impl/data-impl.cc
+++ b/pan/data-impl/data-impl.cc
@@ -162,8 +162,10 @@ DataImpl :: password_decrypt (PasswordData* pw) const
     "server", pw->server.c_str(),
     NULL);
 
-  if (pwd) pw->pw = pwd;
+  std::string tmp;
+  if (pwd) tmp = pwd;
   gnome_keyring_free_password(pwd);
+  pw->pw = tmp;
 
   return ret;
 }



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