[ostree] ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr
- From: Giuseppe Scrivano <gscrivano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr
- Date: Thu, 14 May 2015 08:04:30 +0000 (UTC)
commit 7224450591566ee587dfb6835c219178ca941001
Author: Giuseppe Scrivano <gscrivan redhat com>
Date: Thu May 14 09:56:00 2015 +0200
ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr
Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
src/libostree/ostree-repo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 148dfad..2f21149 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -3806,9 +3806,9 @@ _ostree_repo_verify_commit_internal (OstreeRepo *self,
GError **error)
{
OstreeGpgVerifyResult *result = NULL;
- gs_unref_variant GVariant *commit_variant = NULL;
- gs_unref_variant GVariant *metadata = NULL;
- gs_unref_bytes GBytes *signed_data = NULL;
+ g_autoptr(GVariant) commit_variant = NULL;
+ g_autoptr(GVariant) metadata = NULL;
+ g_autoptr(GBytes) signed_data = NULL;
/* Load the commit */
if (!ostree_repo_load_variant (self, OSTREE_OBJECT_TYPE_COMMIT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]