Changeset 582

Show
Ignore:
Timestamp:
07/26/06 15:49:24
Author:
pvanhoof
Message:

And now, it also really works

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-gnome-desktop/tny-account-store.c

    r579 r582  
    395395                } 
    396396 
     397                if (type) 
     398                        g_free (type); 
    397399 
    398400                if (account) 
    399401                { 
    400402                        tny_account_iface_set_account_store (account, self); 
    401  
    402                         if (type) 
    403                                 g_free (type); 
    404403 
    405404                        key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); 
     
    455454                                        hostname); 
    456455                                 
    457                                 g_free (hostname); g_free (proto); g_free (user); 
     456                                g_free (hostname); g_free (user); 
    458457                        } else { 
    459458                                gchar *url_string; 
     
    488487                        tny_list_iface_prepend (list, account); 
    489488                } 
     489 
     490                if (proto) 
     491                        g_free (proto); 
    490492        } 
    491493 
  • trunk/libtinymail-gpe/tny-account-store.c

    r579 r582  
    274274                } 
    275275 
     276                if (type) 
     277                        g_free (type); 
    276278 
    277279                if (account) 
     
    279281                        tny_account_iface_set_account_store (account, self); 
    280282 
    281                         if (type) 
    282                                 g_free (type); 
    283283 
    284284                        key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); 
     
    334334                                        hostname); 
    335335                                 
    336                                 g_free (hostname); g_free (proto); g_free (user); 
     336                                g_free (hostname); g_free (user); 
    337337                        } else { 
    338338                                gchar *url_string; 
     
    368368                        tny_list_iface_prepend (list, account); 
    369369                } 
     370 
     371                if (proto) 
     372                        g_free (proto); 
    370373        } 
    371374 
  • trunk/libtinymail-maemo/tny-account-store.c

    r579 r582  
    273273                        } 
    274274                } 
    275  
     275                 
     276                if (type) 
     277                        g_free (type); 
    276278 
    277279                if (account) 
     
    279281                        tny_account_iface_set_account_store (account, self); 
    280282 
    281                         if (type) 
    282                                 g_free (type); 
    283283 
    284284                        key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); 
     
    334334                                        hostname); 
    335335                                 
    336                                 g_free (hostname); g_free (proto); g_free (user); 
     336                                g_free (hostname); g_free (user); 
    337337                        } else { 
    338338                                gchar *url_string; 
     
    368368                        tny_list_iface_prepend (list, account); 
    369369                } 
     370 
     371                if (proto) 
     372                        g_free (proto); 
     373 
    370374        } 
    371375 
  • trunk/libtinymail-olpc/tny-account-store.c

    r581 r582  
    197197                gchar *proto, *type, *key, *name; 
    198198                TnyAccountIface *account = NULL; 
    199                  
     199                gchar *fullfilen = g_build_filename (g_get_home_dir(),  
     200                        ".tinymail", "accounts", filen); 
    200201                keyfile = g_key_file_new (); 
    201202 
    202                 if (!g_key_file_load_from_file (keyfile, filen, G_KEY_FILE_NONE, NULL)) 
     203                if (!g_key_file_load_from_file (keyfile, fullfilen, G_KEY_FILE_NONE, NULL)) 
     204                { 
     205                        g_free (fullfilen); 
    203206                        continue; 
     207                } 
    204208 
    205209                type = g_key_file_get_value (keyfile, "tinymail", "type", NULL); 
     
    235239                        proto = g_key_file_get_value (keyfile, "tinymail", "proto", NULL); 
    236240                        tny_account_iface_set_proto (TNY_ACCOUNT_IFACE (account), proto); 
    237                         g_free (proto); 
    238241 
    239242                        name = g_key_file_get_value (keyfile, "tinymail", "name", NULL); 
     
    274277                        } 
    275278 
    276                         tny_account_iface_set_id (TNY_ACCOUNT_IFACE (account), filen); 
     279                        tny_account_iface_set_id (TNY_ACCOUNT_IFACE (account), fullfilen); 
     280 
     281                        g_free (fullfilen); 
    277282 
    278283                        /*  
     
    290295                        tny_list_iface_prepend (list, account); 
    291296                } 
     297 
     298                if (proto) 
     299                        g_free (proto); 
     300 
    292301        }        
    293302        g_dir_close (dir);