Skip to content

Commit a03aa8c

Browse files
committed
fix crash on exit after using Open With dialog
taken from: GNOME/file-roller@ced6c25
1 parent 7dc4a81 commit a03aa8c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/dlg-open-with.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ typedef struct {
3838
} OpenData;
3939

4040

41-
static void
42-
open_data_free (OpenData *o_data)
43-
{
44-
path_list_free (o_data->file_list);
45-
g_free (o_data);
46-
}
47-
48-
4941
static void
5042
app_chooser_response_cb (GtkDialog *dialog,
5143
int response_id,
@@ -61,13 +53,13 @@ app_chooser_response_cb (GtkDialog *dialog,
6153
fr_window_open_files_with_application (o_data->window, o_data->file_list, app_info);
6254
g_object_unref (app_info);
6355
}
64-
open_data_free (o_data);
56+
g_free (o_data);
6557
gtk_widget_destroy (GTK_WIDGET (dialog));
6658
break;
6759

6860
case GTK_RESPONSE_CANCEL:
6961
case GTK_RESPONSE_DELETE_EVENT:
70-
open_data_free (o_data);
62+
g_free (o_data);
7163
gtk_widget_destroy (GTK_WIDGET (dialog));
7264
break;
7365

0 commit comments

Comments
 (0)