diff options
author | monsta <[email protected]> | 2018-04-04 17:52:49 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-04-05 11:46:52 +0300 |
commit | 3ee4f6ce2324188c27686abc2c4eea2f586bebe8 (patch) | |
tree | 2f80404a768619d621be655a1fca284c13beba0d | |
parent | 3b4b6b13da4bbe20b21399378f720901f70a3faf (diff) | |
download | engrampa-3ee4f6ce2324188c27686abc2c4eea2f586bebe8.tar.bz2 engrampa-3ee4f6ce2324188c27686abc2c4eea2f586bebe8.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; |