summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-static-delta-core.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-06-01 09:35:47 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-06-01 15:02:41 +0000
commitf725d39f111bd0d362a583c3a4902e3194fd74d8 (patch)
tree88d81385020b87a243a1449f019952e36b85c0e0 /src/libostree/ostree-repo-static-delta-core.c
parenta189b19fd000f83b2bbd065e0dd47ee18f5c3f50 (diff)
downloadostree-f725d39f111bd0d362a583c3a4902e3194fd74d8.tar.gz
lib: Change ot_util_variant_map helpers to consistently sink refs
This is similar to changes Krzesimir has been doing recently - we really don't need the ergonomics of floating refs since we have autocleanups. We should continue to change most of our code to sink refs. Specifically here it was pretty broken that the `_map()` API was sinking but the other two weren't, and this broke some refactoring I was trying to do later. Closes: #317 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo-static-delta-core.c')
-rw-r--r--src/libostree/ostree-repo-static-delta-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-static-delta-core.c b/src/libostree/ostree-repo-static-delta-core.c
index 9e3ed09f..01383712 100644
--- a/src/libostree/ostree-repo-static-delta-core.c
+++ b/src/libostree/ostree-repo-static-delta-core.c
@@ -512,6 +512,7 @@ _ostree_static_delta_part_open (GInputStream *part_in,
g_bytes_get_size (inline_part_bytes) - 1);
ret_part = g_variant_new_from_bytes (G_VARIANT_TYPE (OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0),
content_bytes, trusted);
+ g_variant_ref_sink (ret_part);
}
if (!skip_checksum)