Commit c089321c authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

tab: Remove tab before unreffing the loading_task data

When there is a problem opening a file, if the user decides to dismiss the tab
clicking the 'x' button in the info bar, remove the tab before unreffing the
loading_task data. Failing to do so will likely result in an access to invalid
parent e88b8456
Pipeline #75724 passed with stage
in 6 minutes and 58 seconds
......@@ -694,10 +694,10 @@ io_loading_error_info_bar_response (GtkWidget *info_bar,
gedit_recent_remove_if_local (location);
remove_tab (data->tab);
g_task_return_boolean (loading_task, FALSE);
g_object_unref (loading_task);
remove_tab (data->tab);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment