summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web-view.c b/src/web-view.c
index c6ff0ad..84927fb 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -1038,7 +1038,6 @@ save_response_cb(GtkWidget *dialog, gint response_id, MqWebView *web_view)
filename = gtk_file_chooser_get_filename(
GTK_FILE_CHOOSER(dialog));
file = g_file_new_for_path(filename);
- g_free(filename);
active_id = gtk_combo_box_get_active_id(
web_view->save_type_combo_box);
@@ -1054,6 +1053,8 @@ save_response_cb(GtkWidget *dialog, gint response_id, MqWebView *web_view)
} else if (g_strcmp0(active_id, "mhtml") == 0) {
save_mhtml(web_view, file);
}
+
+ g_free(filename);
}
gtk_widget_destroy(dialog);