Reverting fix for bug 610073
authorChenthill Palanisamy <pchenthill@novell.com>
Thu, 25 Feb 2010 18:10:11 +0000 (23:40 +0530)
committerChenthill Palanisamy <pchenthill@novell.com>
Thu, 25 Feb 2010 18:10:39 +0000 (23:40 +0530)
camel/camel-folder-summary.c

index 7878efd..49586e0 100644 (file)
@@ -784,6 +784,10 @@ remove_item (gchar *key, CamelMessageInfoBase *info, CamelFolderSummary *s)
        CAMEL_SUMMARY_LOCK(info->summary, ref_lock);
        if (info->refcount == 1 && !info->dirty && !(info->flags & CAMEL_MESSAGE_FOLDER_FLAGGED)) {
                CAMEL_SUMMARY_UNLOCK(info->summary, ref_lock);
+               /* Hackit so that hashtable isn;t corrupted. */
+               /* FIXME: These uid strings are not yet freed. We should get this done soon. */
+               camel_pstring_free (info->uid);
+               info->uid = NULL;
                /* Noone seems to need it. Why not free it then. */
                camel_message_info_free (info);
                return TRUE;