summaryrefslogtreecommitdiff
path: root/tests/test-bsdiff.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-05-04 18:22:39 -0400
committerMatthew Barnes <mbarnes@redhat.com>2015-05-06 21:51:19 -0400
commit4ee1acd98109e98fd0a659f43d3187597d034f05 (patch)
tree4847d102bb7353737d21bf4825a2e3c041ba221f /tests/test-bsdiff.c
parent7a62d64968160d27cbd90aeeed754eb185135f91 (diff)
downloadostree-4ee1acd98109e98fd0a659f43d3187597d034f05.tar.gz
Use g_autoptr() for GIO object types
GLib 2.44 supplies all the necessary autocleanup macros for GIO types, and libglnx backports the relevant macros for ostree.
Diffstat (limited to 'tests/test-bsdiff.c')
-rw-r--r--tests/test-bsdiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-bsdiff.c b/tests/test-bsdiff.c
index 4078a2b8..347de905 100644
--- a/tests/test-bsdiff.c
+++ b/tests/test-bsdiff.c
@@ -69,8 +69,8 @@ test_bsdiff (void)
g_autofree guint8 *old = g_new (guint8, OLD_SIZE);
g_autofree guint8 *new = g_new (guint8, NEW_SIZE);
g_autofree guint8 *new_generated = g_new0 (guint8, NEW_SIZE);
- gs_unref_object GOutputStream *out = g_memory_output_stream_new_resizable ();
- gs_unref_object GInputStream *in = NULL;
+ g_autoptr(GOutputStream) out = g_memory_output_stream_new_resizable ();
+ g_autoptr(GInputStream) in = NULL;
new[0] = 'A';
for (i = 0; i < OLD_SIZE; i++)