Skip to content

Commit

Permalink
fix crash on exit after using Open With dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
monsta committed Apr 5, 2018
1 parent 3b4b6b1 commit 3ee4f6c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/dlg-open-with.c
Expand Up @@ -38,14 +38,6 @@ typedef struct {
} OpenData; } OpenData;




static void
open_data_free (OpenData *o_data)
{
path_list_free (o_data->file_list);
g_free (o_data);
}


static void static void
app_chooser_response_cb (GtkDialog *dialog, app_chooser_response_cb (GtkDialog *dialog,
int response_id, int response_id,
Expand All @@ -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); fr_window_open_files_with_application (o_data->window, o_data->file_list, app_info);
g_object_unref (app_info); g_object_unref (app_info);
} }
open_data_free (o_data); g_free (o_data);
gtk_widget_destroy (GTK_WIDGET (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog));
break; break;


case GTK_RESPONSE_CANCEL: case GTK_RESPONSE_CANCEL:
case GTK_RESPONSE_DELETE_EVENT: case GTK_RESPONSE_DELETE_EVENT:
open_data_free (o_data); g_free (o_data);
gtk_widget_destroy (GTK_WIDGET (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog));
break; break;


Expand Down

0 comments on commit 3ee4f6c

Please sign in to comment.