Patch: reason folder while checking its size


	This is a very small patch that avoids accessing a local folder to get
its size after it's freed. It simply adds a reason to it.

	The patch does not contain Changelog entry. It would be something like
* libtinymail-camel/tny-camel-folder.c:
	* Reason the camel folder while we're getting its size and count,
avoiding some crashes.

José Dapena Paz <jdapena igalia com>
Index: libtinymail-camel/tny-camel-folder.c
--- libtinymail-camel/tny-camel-folder.c	(revision 3640)
+++ libtinymail-camel/tny-camel-folder.c	(working copy)
@@ -1555,8 +1555,10 @@
 	camel_folder_sync (priv->folder, expunge, &ex);
+	_tny_camel_folder_reason (priv);
 	_tny_camel_folder_check_unread_count (TNY_CAMEL_FOLDER (self));
 	reset_local_size (priv);
+	_tny_camel_folder_unreason (priv);
 	g_static_rec_mutex_unlock (priv->folder_lock);

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