diff options
author | monsta <[email protected]> | 2018-04-04 17:52:49 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-04-04 17:52:49 +0300 |
commit | a03aa8c164e1a595a12c44127912b2e75c12e56d (patch) | |
tree | 3fbe1774b19a2c1f70cb96508e19d49835869aa4 | |
parent | 7dc4a81cc5f4064ece317d44ab098d3a08e6b06e (diff) | |
download | engrampa-a03aa8c164e1a595a12c44127912b2e75c12e56d.tar.bz2 engrampa-a03aa8c164e1a595a12c44127912b2e75c12e56d.tar.xz |
fix crash on exit after using Open With dialog
taken from:
https://github.com/GNOME/file-roller/commit/ced6c25a93df7cc0ded59cc299a577441730faa3
-rw-r--r-- | src/dlg-open-with.c | 12 |
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; |