libglnx porting: gs_transfer_out_value -> g_steal_pointer

It's a bit more verbose but...eh.
This commit is contained in:
Colin Walters committed 2016-03-18 12:08:19 -04:00
1 parent b67f5364ac
commit c58ad36840
11 files changed
+48 -24

No files matched your search

@@ -488,7 +488,8 @@ get_unpacked_unlinked_content (OstreeRepo *repo,
}
ret = TRUE;
gs_transfer_out_value (out_content, &ret_content);
if (out_content)
*out_content = g_steal_pointer (&ret_content);
out:
return ret;
}
@@ -532,7 +533,8 @@ try_content_bsdiff (OstreeRepo *repo,
ret_bsdiff->tmp_to = tmp_to; tmp_to = NULL;
ret = TRUE;
gs_transfer_out_value (out_bsdiff, &ret_bsdiff);
if (out_bsdiff)
*out_bsdiff = g_steal_pointer (&ret_bsdiff);
out:
return ret;
}
@@ -597,7 +599,8 @@ try_content_rollsum (OstreeRepo *repo,
ret_rollsum->tmp_to = tmp_to; tmp_to = NULL;
ret = TRUE;
gs_transfer_out_value (out_rollsum, &ret_rollsum);
if (out_rollsum)
*out_rollsum = g_steal_pointer (&ret_rollsum);
out:
if (matches)
_ostree_rollsum_matches_free (matches);
@@ -1199,7 +1202,8 @@ get_fallback_headers (OstreeRepo *self,
ret_headers = g_variant_ref_sink (g_variant_builder_end (fallback_builder));
ret = TRUE;
gs_transfer_out_value (out_headers, &ret_headers);
if (out_headers)
*out_headers = g_steal_pointer (&ret_headers);
out:
return ret;
}