Commit 2faea49d authored by Paolo Bacchilega's avatar Paolo Bacchilega

catalogs: error when removing a library

parent 01beaab3
......@@ -1323,8 +1323,8 @@ remove_from_catalog_end (GError *error,
if (error != NULL)
_gtk_error_dialog_from_gerror_show (data->parent, _("Could not remove the files from the catalog"), error);
g_object_unref (data->catalog);
g_object_unref (data->gio_file);
_g_object_unref (data->catalog);
_g_object_unref (data->gio_file);
_g_object_list_unref (data->file_list);
g_free (data);
}
......@@ -1418,6 +1418,7 @@ gth_catalog_manager_remove_files (GtkWindow *parent,
data->file_list = _g_file_list_dup (file_list);
data->gio_file = gth_main_get_gio_file (location->file);
data->notify = notify;
data->catalog = NULL;
_g_file_load_async (data->gio_file,
G_PRIORITY_DEFAULT,
......
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