Changeset 582
- Timestamp:
- 07/26/06 15:49:24
- Files:
-
- trunk/libtinymail-gnome-desktop/tny-account-store.c (modified) (3 diffs)
- trunk/libtinymail-gpe/tny-account-store.c (modified) (4 diffs)
- trunk/libtinymail-maemo/tny-account-store.c (modified) (4 diffs)
- trunk/libtinymail-olpc/tny-account-store.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-gnome-desktop/tny-account-store.c
r579 r582 395 395 } 396 396 397 if (type) 398 g_free (type); 397 399 398 400 if (account) 399 401 { 400 402 tny_account_iface_set_account_store (account, self); 401 402 if (type)403 g_free (type);404 403 405 404 key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); … … 455 454 hostname); 456 455 457 g_free (hostname); g_free ( proto); g_free (user);456 g_free (hostname); g_free (user); 458 457 } else { 459 458 gchar *url_string; … … 488 487 tny_list_iface_prepend (list, account); 489 488 } 489 490 if (proto) 491 g_free (proto); 490 492 } 491 493 trunk/libtinymail-gpe/tny-account-store.c
r579 r582 274 274 } 275 275 276 if (type) 277 g_free (type); 276 278 277 279 if (account) … … 279 281 tny_account_iface_set_account_store (account, self); 280 282 281 if (type)282 g_free (type);283 283 284 284 key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); … … 334 334 hostname); 335 335 336 g_free (hostname); g_free ( proto); g_free (user);336 g_free (hostname); g_free (user); 337 337 } else { 338 338 gchar *url_string; … … 368 368 tny_list_iface_prepend (list, account); 369 369 } 370 371 if (proto) 372 g_free (proto); 370 373 } 371 374 trunk/libtinymail-maemo/tny-account-store.c
r579 r582 273 273 } 274 274 } 275 275 276 if (type) 277 g_free (type); 276 278 277 279 if (account) … … 279 281 tny_account_iface_set_account_store (account, self); 280 282 281 if (type)282 g_free (type);283 283 284 284 key = g_strdup_printf ("/apps/tinymail/accounts/%d/proto", i); … … 334 334 hostname); 335 335 336 g_free (hostname); g_free ( proto); g_free (user);336 g_free (hostname); g_free (user); 337 337 } else { 338 338 gchar *url_string; … … 368 368 tny_list_iface_prepend (list, account); 369 369 } 370 371 if (proto) 372 g_free (proto); 373 370 374 } 371 375 trunk/libtinymail-olpc/tny-account-store.c
r581 r582 197 197 gchar *proto, *type, *key, *name; 198 198 TnyAccountIface *account = NULL; 199 199 gchar *fullfilen = g_build_filename (g_get_home_dir(), 200 ".tinymail", "accounts", filen); 200 201 keyfile = g_key_file_new (); 201 202 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); 203 206 continue; 207 } 204 208 205 209 type = g_key_file_get_value (keyfile, "tinymail", "type", NULL); … … 235 239 proto = g_key_file_get_value (keyfile, "tinymail", "proto", NULL); 236 240 tny_account_iface_set_proto (TNY_ACCOUNT_IFACE (account), proto); 237 g_free (proto);238 241 239 242 name = g_key_file_get_value (keyfile, "tinymail", "name", NULL); … … 274 277 } 275 278 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); 277 282 278 283 /* … … 290 295 tny_list_iface_prepend (list, account); 291 296 } 297 298 if (proto) 299 g_free (proto); 300 292 301 } 293 302 g_dir_close (dir);
