summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window-commands.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 7e8b38bb2..6e2b5df75 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -1687,7 +1687,6 @@ static void
download_icon_and_set_image (EphyApplicationDialogData *data)
{
g_autofree char *destination = NULL;
- g_autofree char *tmp_filename = NULL;
EphyEmbedShell *shell = ephy_embed_shell_get_default ();
data->download = webkit_network_session_download_uri (ephy_embed_shell_get_network_session (shell),
@@ -1700,8 +1699,7 @@ download_icon_and_set_image (EphyApplicationDialogData *data)
* instead of using this workaround. */
g_object_set_data (G_OBJECT (data->download), "ephy-download-set", GINT_TO_POINTER (TRUE));
- tmp_filename = ephy_file_tmp_filename (".ephy-download-XXXXXX", NULL);
- destination = g_build_filename (ephy_file_tmp_dir (), tmp_filename, NULL);
+ destination = g_build_filename (ephy_file_tmp_dir (), data->icon_href, NULL);
webkit_download_set_destination (data->download, destination);
g_signal_connect (data->download, "finished",