core: New ot_transfer_out_value() macro
This makes out values considerably less typing.
This commit is contained in:
1 parent
32c8166b25
commit
0003e101f6
7 files changed
+59
-136
No files matched your search
@@ -327,8 +327,7 @@ _ostree_repo_file_get_xattrs (OstreeRepoFile *self,
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
*out_xattrs = ret_xattrs;
|
||||
ret_xattrs = NULL;
|
||||
ot_transfer_out_value(out_xattrs, ret_xattrs);
|
||||
out:
|
||||
ot_clear_gvariant (&ret_xattrs);
|
||||
g_clear_object (&local_file);
|
||||
@@ -740,8 +739,7 @@ query_child_info_dir (OstreeRepo *repo,
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
*out_info = ret_info;
|
||||
ret_info = NULL;
|
||||
ot_transfer_out_value(out_info, ret_info);
|
||||
out:
|
||||
g_clear_object (&ret_info);
|
||||
ot_clear_gvariant (&metadata);
|
||||
@@ -1089,8 +1087,7 @@ _ostree_repo_file_tree_query_child (OstreeRepoFile *self,
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
*out_info = ret_info;
|
||||
ret_info = NULL;
|
||||
ot_transfer_out_value(out_info, ret_info);
|
||||
out:
|
||||
g_clear_object (&ret_info);
|
||||
g_clear_object (&local_child);
|
||||
|
||||
Reference in new issue
Block a user