diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-23 00:11:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-24 04:36:01 +0800 |
commit | 256422cab27d0b7adbe99fdeaceb72cd78c129bb (patch) | |
tree | 8d087e570e7656e7d088232d98c52636c95baed0 /e-util/e-attachment-store.c | |
parent | 37c5951635a4f45ba26b0f95ce7af61275d47fba (diff) | |
download | gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.gz gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.bz2 gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.lz gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.xz gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.tar.zst gsoc2013-evolution-256422cab27d0b7adbe99fdeaceb72cd78c129bb.zip |
Attachment-related cleanups.
Diffstat (limited to 'e-util/e-attachment-store.c')
-rw-r--r-- | e-util/e-attachment-store.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/e-util/e-attachment-store.c b/e-util/e-attachment-store.c index 55bc795095..8ea2f8965b 100644 --- a/e-util/e-attachment-store.c +++ b/e-util/e-attachment-store.c @@ -727,18 +727,18 @@ e_attachment_store_get_uris_async (EAttachmentStore *store, for (iter = attachment_list; iter != NULL; iter = iter->next) { EAttachment *attachment = iter->data; GFile *file; - gchar *uri; file = e_attachment_get_file (attachment); - if (file == NULL) - continue; + if (file != NULL) { + gchar *uri; - uri = g_file_get_uri (file); - uri_context->uris[uri_context->index++] = uri; + uri = g_file_get_uri (file); + uri_context->uris[uri_context->index++] = uri; - /* Mark the list node for deletion. */ - trash = g_list_prepend (trash, iter); - g_object_unref (attachment); + /* Mark the list node for deletion. */ + trash = g_list_prepend (trash, iter); + g_object_unref (attachment); + } } /* Expunge the list. */ |