aboutsummaryrefslogtreecommitdiff
path: root/tests/q35-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/q35-test.c')
-rw-r--r--tests/q35-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/q35-test.c b/tests/q35-test.c
index 3eaedf4..7ea7acc 100644
--- a/tests/q35-test.c
+++ b/tests/q35-test.c
@@ -109,7 +109,7 @@ static void test_smram_lock(void)
response = qmp("{'execute': 'system_reset', 'arguments': {} }");
g_assert(response);
g_assert(!qdict_haskey(response, "error"));
- QDECREF(response);
+ qobject_unref(response);
/* check open is settable again */
smram_set_bit(pcidev, MCH_HOST_BRIDGE_SMRAM_D_OPEN, false);