From 3ee4f6ce2324188c27686abc2c4eea2f586bebe8 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 4 Apr 2018 17:52:49 +0300 Subject: fix crash on exit after using Open With dialog taken from: https://github.com/GNOME/file-roller/commit/ced6c25a93df7cc0ded59cc299a577441730faa3 --- src/dlg-open-with.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src') 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 @@ -38,14 +38,6 @@ typedef struct { } OpenData; -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, @@ -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; -- cgit v1.2.1