Changeset 2455
- Timestamp:
- 07/11/07 14:24:09
- Files:
-
- trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-header-list-model.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c
r2367 r2455 331 331 332 332 #ifdef G_OS_WIN32 333 if ( g_access(dir, F_OK) == -1) {333 if (dir && g_access(dir, F_OK) == -1) { 334 334 #else 335 if ( access (dir, F_OK) == -1) {335 if (dir && access (dir, F_OK) == -1) { 336 336 #endif 337 if (create )337 if (create && dir) 338 338 g_mkdir_with_parents (dir, 0700); 339 339 } else if (cdc->priv->expire_inc == hash trunk/libtinymail-camel/tny-camel-folder.c
r2450 r2455 3415 3415 g_mutex_lock (priv->reason_lock); 3416 3416 priv->reason_to_live--; 3417 3418 printf ("UNR (%s) : %d\n", priv->folder_name, priv->reason_to_live); 3417 3419 3418 3420 if (priv->reason_to_live == 0) … … 4502 4504 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 4503 4505 4506 #ifdef DEBUG 4507 g_print ("Finalizing TnyCamelFolder: %s\n", priv->folder_name?priv->folder_name:"(cleared)"); 4508 if (priv->reason_to_live != 0) 4509 g_print ("Finalizing TnyCamelFolder, yet TnyHeader instances " 4510 "are still alive: %d\n", priv->reason_to_live); 4511 #endif 4504 4512 4505 4513 /* Commented because they should not be really needed but some trunk/libtinymailui-gtk/tny-gtk-header-list-model.c
r2400 r2455 815 815 } 816 816 817 #ifdef DEBUG 818 static void forea (gpointer u, gpointer o) 819 { 820 g_print ("TnyGtkHeaderListModel::finalize unrefs hdr to: %d\n", ((GObject *)u)->ref_count); 821 if (((GObject *)u)->ref_count != 1) 822 printf ("ps. Usually, this should be 1 here\n"); 823 g_object_unref (u); 824 } 825 #endif 826 817 827 818 828 static void … … 823 833 824 834 g_static_rec_mutex_lock (priv->iterator_lock); 835 836 #ifdef DEBUG 837 g_print ("tny_gtk_header_list_model_finalize\n"); 838 #endif 825 839 826 840 if (priv->add_timeout > 0) { … … 831 845 remove_del_timeouts (self); 832 846 847 #ifdef DEBUG 848 g_ptr_array_foreach (priv->items, (GFunc) forea, NULL); 849 #else 833 850 g_ptr_array_foreach (priv->items, (GFunc) g_object_unref, NULL); 851 #endif 852 834 853 if (priv->folder) 835 854 g_object_unref (priv->folder);
