Use g_autoptr(GVariant) instead of gs_unref_variant

This commit is contained in:
Matthew Barnes committed 2015-05-06 22:07:10 -04:00
1 parent bb231fdf74
commit c2c322efa9
26 files changed
+182 -182

No files matched your search

+1 -1
View File
@@ -391,7 +391,7 @@ ostree_repo_resolve_rev (OstreeRepo *self,
{
g_autofree char *parent_refspec = NULL;
g_autofree char *parent_rev = NULL;
gs_unref_variant GVariant *commit = NULL;
g_autoptr(GVariant) commit = NULL;
parent_refspec = g_strdup (refspec);
parent_refspec[strlen(parent_refspec) - 1] = '\0';