Changeset 3653
- Timestamp:
- 05/12/08 11:05:34
- Files:
-
- releases/modest/diablo-pe1/ChangeLog (modified) (1 diff)
- releases/modest/diablo-pe1/libtinymail-camel/tny-camel-send-queue.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/modest/diablo-pe1/ChangeLog
r3649 r3653 1 2008-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 1 8 2008-05-09 Jose Dapena Paz <jdapena@igalia.com> 2 9 releases/modest/diablo-pe1/libtinymail-camel/tny-camel-send-queue.c
r3638 r3653 609 609 g_object_unref (info->self); 610 610 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 611 623 if (info->outbox_account) 612 624 g_object_unref (info->outbox_account); 613 625 if (info->sentbox_account) 614 626 g_object_unref (info->sentbox_account); 615 616 g_object_unref (info->outbox);617 g_object_unref (info->sentbox);618 627 g_object_unref (info->trans_account); 619 628 … … 668 677 info->trans_account = (TnyTransportAccount *) g_object_ref (priv->trans_account); 669 678 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 } 670 687 671 688 emit_queue_control_signals (self, TNY_SEND_QUEUE_START); … … 673 690 priv->thread = g_thread_create (thread_main, info, FALSE, NULL); 674 691 675 if (priv->thread == NULL) 692 if (priv->thread == NULL) { 676 693 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 } 677 703 } 678 704 }
