Unref a GFile in GIO, not a GIOChannel.
[cascardo/atompub.git] / backend / gio / gio.c
index 5ac4550..1157753 100644 (file)
@@ -47,7 +47,7 @@ Atom * gio_atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
       atom_error_set (ctx, error);
       return NULL;
     }
-  g_object_unref (channel);
+  g_object_unref (file);
   atom = atom_new_data_len (data, len);
   g_free (data);
   return atom;