core: Drop ot_clear_gvariant() in favor of g_clear_pointer

This commit is contained in:
Colin Walters committed 2012-07-17 08:14:33 -04:00
1 parent 57fcafd1ab
commit 2ced4abf11
7 files changed
+24 -30

No files matched your search

+1 -1
View File
@@ -729,7 +729,7 @@ ostree_set_xattrs (GFile *f,
value_data = g_variant_get_fixed_array (value, &value_len, 1);
loop_err = lsetxattr (path, (char*)name, (char*)value_data, value_len, XATTR_REPLACE) < 0;
ot_clear_gvariant (&value);
g_clear_pointer (&value, (GDestroyNotify) g_variant_unref);
if (loop_err)
{
ot_util_set_error_from_errno (error, errno);