[evolution-data-server] Bug #612596 - Crash in gnome_keyring_item_info_free from e-passwords.c



commit 9e517f5deb22ee2ad937afad5ef0b6969ffd55ae
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 12 11:19:05 2010 +0200

    Bug #612596 - Crash in gnome_keyring_item_info_free from e-passwords.c

 libedataserverui/e-passwords.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libedataserverui/e-passwords.c b/libedataserverui/e-passwords.c
index 1b0ee7b..36ced34 100644
--- a/libedataserverui/e-passwords.c
+++ b/libedataserverui/e-passwords.c
@@ -1290,12 +1290,13 @@ e_passwords_init (void)
 		 * We might be able to extract passwords from it. */
 		key_file = g_key_file_new ();
 		ep_key_file_load ();
+
+	#ifdef WITH_GNOME_KEYRING
+		if (gnome_keyring_is_available ())
+			gnome_keyring_get_default_keyring_sync (&default_keyring);
+	#endif
 	}
 
-#ifdef WITH_GNOME_KEYRING
-	if (gnome_keyring_is_available ())
-		gnome_keyring_get_default_keyring_sync (&default_keyring);
-#endif
 	G_UNLOCK (passwords);
 }
 



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