summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-04 17:52:49 +0300
committermonsta <[email protected]>2018-04-05 11:48:22 +0300
commit21a0159a1cbd94ae24f3d7493ae6feeb65481ed4 (patch)
tree4a86bd641bcde3c0e2f0254d52d86c804714dab1 /src
parent69cfc4d13960c800a31124e7b5c80f11a78ee770 (diff)
downloadengrampa-21a0159a1cbd94ae24f3d7493ae6feeb65481ed4.tar.bz2
engrampa-21a0159a1cbd94ae24f3d7493ae6feeb65481ed4.tar.xz
fix crash on exit after using Open With dialog
taken from: https://github.com/GNOME/file-roller/commit/ced6c25a93df7cc0ded59cc299a577441730faa3
Diffstat (limited to 'src')
-rw-r--r--src/dlg-open-with.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/dlg-open-with.c b/src/dlg-open-with.c
index 2bd5df9..fb728cf 100644
--- a/src/dlg-open-with.c
+++ b/src/dlg-open-with.c
@@ -39,14 +39,6 @@ typedef struct {
static void
-open_data_free (OpenData *o_data)
-{
- path_list_free (o_data->file_list);
- g_free (o_data);
-}
-
-
-static void
app_chooser_response_cb (GtkDialog *dialog,
int response_id,
gpointer user_data)
@@ -61,13 +53,13 @@ app_chooser_response_cb (GtkDialog *dialog,
fr_window_open_files_with_application (o_data->window, o_data->file_list, app_info);
g_object_unref (app_info);
}
- open_data_free (o_data);
+ g_free (o_data);
gtk_widget_destroy (GTK_WIDGET (dialog));
break;
case GTK_RESPONSE_CANCEL:
case GTK_RESPONSE_DELETE_EVENT:
- open_data_free (o_data);
+ g_free (o_data);
gtk_widget_destroy (GTK_WIDGET (dialog));
break;