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

+2 -2
View File
@@ -404,8 +404,8 @@ ostree_sysroot_upgrader_check_timestamps (OstreeRepo *repo,
GError **error)
{
gboolean ret = FALSE;
gs_unref_variant GVariant *old_commit = NULL;
gs_unref_variant GVariant *new_commit = NULL;
g_autoptr(GVariant) old_commit = NULL;
g_autoptr(GVariant) new_commit = NULL;
if (!ostree_repo_load_variant (repo,
OSTREE_OBJECT_TYPE_COMMIT,