2005-10-25 [colin] 1.9.15cvs107
[claws.git] / src / procmime.c
index 86fde560894c0d2eeaa563e0852d714c8a44fa21..f281ebf1209c531dd1d7d1193526f597066d8f8b 100644 (file)
@@ -980,8 +980,10 @@ gchar *procmime_get_tmp_file_name(MimeInfo *mimeinfo)
                if (basetmp == NULL)
                        basetmp = "mimetmp";
                basetmp = g_path_get_basename(basetmp);
-               if (*basetmp == '\0') basetmp = g_strdup("mimetmp");
+               if (*basetmp == '\0') 
+                       basetmp = g_strdup("mimetmp");
                base = conv_filename_from_utf8(basetmp);
+               g_free(basetmp);
                subst_for_shellsafe_filename(base);
        }