Skip to content
Permalink
Browse files

fix crash on exit after using Open With dialog

  • Loading branch information...
monsta committed Apr 4, 2018
1 parent 3b4b6b1 commit 3ee4f6ce2324188c27686abc2c4eea2f586bebe8
Showing with 2 additions and 10 deletions.
  1. +2 −10 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;

0 comments on commit 3ee4f6c

Please sign in to comment.
You can’t perform that action at this time.