Use g_autoptr(GBytes) instead of gs_unref_bytes
This commit is contained in:
1 parent
3f044267b5
commit
e6556dd223
11 files changed
+30
-30
No files matched your search
@@ -853,7 +853,7 @@ ostree_sysroot_write_origin_file (OstreeSysroot *sysroot,
|
||||
g_autoptr(GFile) origin_parent = g_file_get_parent (origin_path);
|
||||
g_autofree char *contents = NULL;
|
||||
gsize len;
|
||||
gs_unref_bytes GBytes *contents_bytes = NULL;
|
||||
g_autoptr(GBytes) contents_bytes = NULL;
|
||||
|
||||
contents = g_key_file_to_data (origin, &len, error);
|
||||
if (!contents)
|
||||
|
||||
Reference in new issue
Block a user