printers: Don't pass GFile references around

An internal GTask will hold a reference to it for the duration of the async call.
This commit is contained in:
Robert Ancell 2020-06-26 16:40:05 +12:00 committed by Robert Ancell
parent f3bf0080d7
commit 5f4599d649

View file

@ -1539,7 +1539,6 @@ printer_set_ppd_file_async_scb (GObject *source_object,
success = g_file_copy_finish (G_FILE (source_object),
res,
&error);
g_object_unref (source_object);
if (!success)
{
@ -1596,7 +1595,7 @@ printer_set_ppd_file_async (const gchar *printer_name,
{
g_autoptr(GFileIOStream) stream = NULL;
PSPData *data;
GFile *source_ppd_file;
g_autoptr(GFile) source_ppd_file = NULL;
g_autoptr(GFile) destination_ppd_file = NULL;
data = g_new0 (PSPData, 1);