diff options
author | Shreyas Srinivasan <sshreyas@novell.com> | 2005-07-21 15:00:54 +0800 |
---|---|---|
committer | Shreyas Srinivasan <shres@src.gnome.org> | 2005-07-21 15:00:54 +0800 |
commit | ae18a1bad11a55cb52749ca78f4c0ffb9be71475 (patch) | |
tree | 9cca2f9dc82c7fa1e7ff74a1a1d290960970e822 /composer | |
parent | 1b8003c1768fa6a0d33a91f0637fc99fe0801ae8 (diff) | |
download | gsoc2013-evolution-ae18a1bad11a55cb52749ca78f4c0ffb9be71475.tar.gz gsoc2013-evolution-ae18a1bad11a55cb52749ca78f4c0ffb9be71475.tar.zst gsoc2013-evolution-ae18a1bad11a55cb52749ca78f4c0ffb9be71475.zip |
Use camel_object_unref instead of g_object_unref.
2005-07-21 Shreyas Srinivasan <sshreyas@novell.com>
* e-msg-composer-hdrs.c (account_can_send): Use camel_object_unref
instead of g_object_unref.
svn path=/trunk/; revision=29823
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 03dacd6f1c..7251c68633 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,6 +1,11 @@ +2005-07-21 Shreyas Srinivasan <sshreyas@novell.com> + + * e-msg-composer-hdrs.c (account_can_send): Use camel_object_unref + instead of g_object_unref. + 2005-07-15 Shreyas Srinivasan <sshreyas@novell.com> - * e-msg-composer-hdrs.c: (account_can_send) unref the store which + * e-msg-composer-hdrs.c (account_can_send): unref the store which was being leaked. 2005-07-14 Not Zed <NotZed@Ximian.com> diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index b3e8078f3e..1361c0dfff 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -338,13 +338,13 @@ account_can_send (EAccount *account) if (!account->parent_uid) return TRUE; - if (!(store = (CamelStore *) camel_session_get_service (session, e_account_get_string(account, E_ACCOUNT_SOURCE_URL), CAMEL_PROVIDER_STORE, &ex))) + if (!(store = (CamelStore *) camel_session_get_service (session, e_account_get_string(account, E_ACCOUNT_SOURCE_URL), CAMEL_PROVIDER_STORE, &ex))) { camel_exception_clear (&ex); - else if (store->mode & CAMEL_STORE_WRITE) { + return result; + } else if (store->mode & CAMEL_STORE_WRITE) result = TRUE; - g_object_unref (store); - } + camel_object_unref (store); return result; } |