Changeset 3653

Show
Ignore:
Timestamp:
05/12/08 11:05:34
Author:
svillar
Message:
  • Added a couple of missing reason and unreason to the send queue
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/modest/diablo-pe1/ChangeLog

    r3649 r3653  
     12008-05-12  Sergio Villar Senin  <svillar@igalia.com> 
     2 
     3        * libtinymail-camel/tny-camel-send-queue.c: Add camel folder reason to 
     4        sentbox and outbox while sending, as we can get unreasons and have 
     5        then crash because the message cache is freed. (Based on a previous 
     6        patch by Dape).                          
     7 
    182008-05-09  Jose Dapena Paz  <jdapena@igalia.com> 
    29 
  • releases/modest/diablo-pe1/libtinymail-camel/tny-camel-send-queue.c

    r3638 r3653  
    609609        g_object_unref (info->self); 
    610610 
     611        if (TNY_IS_CAMEL_FOLDER (info->outbox)) { 
     612                TnyCamelFolderPriv *opriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->outbox); 
     613                _tny_camel_folder_unreason (opriv); 
     614        } 
     615        if (TNY_IS_CAMEL_FOLDER (info->sentbox)) { 
     616                TnyCamelFolderPriv *spriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->sentbox); 
     617                _tny_camel_folder_unreason (spriv); 
     618        } 
     619 
     620        g_object_unref (info->outbox); 
     621        g_object_unref (info->sentbox); 
     622 
    611623        if (info->outbox_account) 
    612624                g_object_unref (info->outbox_account); 
    613625        if (info->sentbox_account) 
    614626                g_object_unref (info->sentbox_account); 
    615  
    616         g_object_unref (info->outbox); 
    617         g_object_unref (info->sentbox); 
    618627        g_object_unref (info->trans_account); 
    619628 
     
    668677                        info->trans_account = (TnyTransportAccount *) g_object_ref (priv->trans_account); 
    669678 
     679                        if (TNY_IS_CAMEL_FOLDER (info->outbox)) { 
     680                                TnyCamelFolderPriv *opriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->outbox); 
     681                                _tny_camel_folder_reason (opriv); 
     682                        } 
     683                        if (TNY_IS_CAMEL_FOLDER (info->sentbox)) { 
     684                                TnyCamelFolderPriv *spriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->sentbox); 
     685                                _tny_camel_folder_reason (spriv); 
     686                        }                        
    670687 
    671688                        emit_queue_control_signals (self, TNY_SEND_QUEUE_START); 
     
    673690                        priv->thread = g_thread_create (thread_main, info, FALSE, NULL); 
    674691 
    675                         if (priv->thread == NULL) 
     692                        if (priv->thread == NULL) { 
    676693                                emit_queue_control_signals (self, TNY_SEND_QUEUE_STOP); 
     694                                if (TNY_IS_CAMEL_FOLDER (info->outbox)) { 
     695                                        TnyCamelFolderPriv *opriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->outbox); 
     696                                        _tny_camel_folder_unreason (opriv); 
     697                                } 
     698                                if (TNY_IS_CAMEL_FOLDER (info->sentbox)) { 
     699                                        TnyCamelFolderPriv *spriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->sentbox); 
     700                                        _tny_camel_folder_unreason (spriv); 
     701                                } 
     702                        } 
    677703                } 
    678704        }