Bug #612596 - Crash in gnome_keyring_item_info_free from e-passwords.c
authorMilan Crha <mcrha@redhat.com>
Wed, 12 May 2010 09:19:05 +0000 (11:19 +0200)
committerMilan Crha <mcrha@redhat.com>
Wed, 12 May 2010 09:22:27 +0000 (11:22 +0200)
libedataserverui/e-passwords.c

index 1b0ee7b..36ced34 100644 (file)
@@ -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);
 }