aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-store.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-04-08 05:40:49 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-04-08 05:40:49 +0800
commita843a2a4d205ef45d8a5670cf0b17c238cee1f37 (patch)
tree9979d5ade1368251151a2007822e47a9eb8cfe19 /widgets/misc/e-attachment-store.c
parenta312ad7cf1c2c34577914a2f0f2a5ca191378103 (diff)
downloadgsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar.gz
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar.bz2
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar.lz
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar.xz
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.tar.zst
gsoc2013-evolution-a843a2a4d205ef45d8a5670cf0b17c238cee1f37.zip
Attachment rewrite pretty much complete. Just testing now.
svn path=/branches/kill-bonobo/; revision=37504
Diffstat (limited to 'widgets/misc/e-attachment-store.c')
-rw-r--r--widgets/misc/e-attachment-store.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/widgets/misc/e-attachment-store.c b/widgets/misc/e-attachment-store.c
index 589f670f34..24cc89b366 100644
--- a/widgets/misc/e-attachment-store.c
+++ b/widgets/misc/e-attachment-store.c
@@ -715,6 +715,7 @@ attachment_store_get_uris_save_cb (EAttachment *attachment,
g_list_foreach (
uri_context->attachment_list,
(GFunc) e_attachment_cancel, NULL);
+ error = NULL;
/* Otherwise, we can only report back one error. So if
* this is something other than cancellation, dump it to
@@ -722,9 +723,10 @@ attachment_store_get_uris_save_cb (EAttachment *attachment,
} else if (!g_error_matches (
error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("%s", error->message);
+ }
+ if (error != NULL)
g_error_free (error);
- }
/* If there's still jobs running, let them finish. */
if (uri_context->attachment_list != NULL)
@@ -846,9 +848,8 @@ e_attachment_store_get_uris_finish (EAttachmentStore *store,
GSimpleAsyncResult *simple;
gchar **uris;
- g_return_val_if_fail (
- g_simple_async_result_is_valid (result, G_OBJECT (store),
- e_attachment_store_get_uris_async), FALSE);
+ g_return_val_if_fail (E_IS_ATTACHMENT_STORE (store), NULL);
+ g_return_val_if_fail (G_IS_SIMPLE_ASYNC_RESULT (result), NULL);
simple = G_SIMPLE_ASYNC_RESULT (result);
uris = g_simple_async_result_get_op_res_gpointer (simple);