Changeset 3636

Show
Ignore:
Timestamp:
04/29/08 14:34:30
Author:
pvanhoof
Message:

2008-04-29 Philip Van Hoof <pvanhoof@gnome.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3635 r3636  
     12008-04-29  Philip Van Hoof <pvanhoof@gnome.org> 
     2 
     3        * Extra robustness in TnyCamelSendQueue 
     4 
    152008-04-29  Jose Dapena Paz  <jdapena@igalia.com> 
    26 
  • trunk/libtinymail-camel/tny-camel-send-queue.c

    r3628 r3636  
    794794        g_object_unref (info->self); 
    795795 
     796 
     797        if (TNY_IS_CAMEL_FOLDER (info->sentbox)) { 
     798                TnyCamelFolderPriv *spriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->sentbox); 
     799                _tny_camel_folder_unreason (spriv); 
     800        } 
     801 
     802        if (TNY_IS_CAMEL_FOLDER (info->outbox)) { 
     803                TnyCamelFolderPriv *opriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->outbox); 
     804                _tny_camel_folder_unreason (opriv); 
     805        } 
     806 
     807        g_object_unref (info->outbox); 
     808        g_object_unref (info->sentbox); 
     809 
    796810        if (info->outbox_account) 
    797811                g_object_unref (info->outbox_account); 
    798812        if (info->sentbox_account) 
    799813                g_object_unref (info->sentbox_account); 
    800  
    801         g_object_unref (info->outbox); 
    802         g_object_unref (info->sentbox); 
    803814        g_object_unref (info->trans_account); 
    804815 
     
    853864                        info->trans_account = (TnyTransportAccount *) g_object_ref (priv->trans_account); 
    854865 
     866                        if (TNY_IS_CAMEL_FOLDER (info->sentbox)) { 
     867                                TnyCamelFolderPriv *spriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->sentbox); 
     868                                _tny_camel_folder_reason (spriv); 
     869                        } 
     870 
     871                        if (TNY_IS_CAMEL_FOLDER (info->outbox)) { 
     872                                TnyCamelFolderPriv *opriv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->outbox); 
     873                                _tny_camel_folder_reason (opriv); 
     874                        } 
    855875 
    856876                        emit_queue_control_signals (self, TNY_SEND_QUEUE_START);