aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-store.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-13 23:39:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-13 23:39:18 +0800
commit00cf33a815541bc2e4a2d96e29900241bf58c379 (patch)
tree770cefddfb7359259cafc6dadffb9c8f7374a1e5 /widgets/misc/e-attachment-store.c
parentfee1642fc78d80a382c5c96cb294f4bd3d00be77 (diff)
downloadgsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar.gz
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar.bz2
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar.lz
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar.xz
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.tar.zst
gsoc2013-evolution-00cf33a815541bc2e4a2d96e29900241bf58c379.zip
Bug 582144 – Evolution not showing proper attachment filename
Diffstat (limited to 'widgets/misc/e-attachment-store.c')
-rw-r--r--widgets/misc/e-attachment-store.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment-store.c b/widgets/misc/e-attachment-store.c
index 9d0fe6d21e..53a1cbe1ff 100644
--- a/widgets/misc/e-attachment-store.c
+++ b/widgets/misc/e-attachment-store.c
@@ -839,11 +839,13 @@ e_attachment_store_get_uris_async (EAttachmentStore *store,
/* Any remaining attachments in the list should have MIME parts
* only, so we need to save them all to a temporary directory.
- * We use a directory so the files can retain their basenames. */
+ * We use a directory so the files can retain their basenames.
+ * XXX This could trigger a blocking temp directory cleanup. */
template = g_strdup_printf (PACKAGE "-%s-XXXXXX", g_get_user_name ());
path = e_mkdtemp (template);
g_free (template);
+ /* XXX Let's hope errno got set property. */
if (path == NULL) {
GSimpleAsyncResult *simple;
@@ -871,6 +873,7 @@ e_attachment_store_get_uris_async (EAttachmentStore *store,
uri_context);
g_object_unref (temp_directory);
+ g_free (path);
}
gchar **