Use g_autoptr() for GIO object types
GLib 2.44 supplies all the necessary autocleanup macros for GIO types, and libglnx backports the relevant macros for ostree.
This commit is contained in:
1 parent
7a62d64968
commit
4ee1acd981
51 files changed
+320
-320
No files matched your search
@@ -432,7 +432,7 @@ on_fetched_url (GObject *src,
|
||||
GError *local_error = NULL;
|
||||
struct stat stbuf;
|
||||
int parent_dfd = _ostree_fetcher_get_dfd (self->metalink->fetcher);
|
||||
gs_unref_object GInputStream *instream = NULL;
|
||||
g_autoptr(GInputStream) instream = NULL;
|
||||
g_autofree char *result = NULL;
|
||||
GChecksum *checksum = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user