aboutsummaryrefslogtreecommitdiff
path: root/libqcdm
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2014-05-28 23:12:43 -0700
committerAleksander Morgado <aleksander@aleksander.es>2014-05-29 10:05:45 +0200
commit54b75e3bcd87f026fe449349691fbc096932749e (patch)
treee7153e4771ecabedbe34a36462281700b84a6162 /libqcdm
parentf0542aa8092ed6a8f91bbc406b6c76bd6fd4c734 (diff)
qcdm: fix memory leaks in tests
Diffstat (limited to 'libqcdm')
-rw-r--r--libqcdm/tests/test-qcdm-result.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqcdm/tests/test-qcdm-result.c b/libqcdm/tests/test-qcdm-result.c
index 0a1820dd..1c9c74f0 100644
--- a/libqcdm/tests/test-qcdm-result.c
+++ b/libqcdm/tests/test-qcdm-result.c
@@ -53,6 +53,8 @@ test_result_uint32 (void *f, void *data)
qcdm_result_get_u32 (result, TEST_TAG, &tmp);
g_assert_cmpint (tmp, ==, num);
+
+ qcdm_result_unref (result);
}
void
@@ -67,6 +69,8 @@ test_result_uint8 (void *f, void *data)
qcdm_result_get_u8 (result, TEST_TAG, &tmp);
g_assert (tmp == num);
+
+ qcdm_result_unref (result);
}
void
@@ -83,5 +87,7 @@ test_result_uint8_array (void *f, void *data)
qcdm_result_get_u8_array (result, TEST_TAG, &tmp, &tmp_len);
g_assert_cmpint (tmp_len, ==, sizeof (array));
g_assert_cmpint (memcmp (tmp, array, tmp_len), ==, 0);
+
+ qcdm_result_unref (result);
}