aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-device.cc8
-rw-r--r--tests/test-indicator.cc2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 02516f4..4dde4af 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -45,7 +45,7 @@ TEST(DeviceTest, GObjectNew)
GObject * o = G_OBJECT (g_object_new (INDICATOR_POWER_DEVICE_TYPE, NULL));
ASSERT_TRUE (o != NULL);
ASSERT_TRUE (INDICATOR_IS_POWER_DEVICE(o));
- g_clear_pointer (&o, g_object_unref);
+ g_object_unref (o);
}
TEST(DeviceTest, New)
@@ -68,7 +68,7 @@ TEST(DeviceTest, New)
ASSERT_EQ (indicator_power_device_get_time(device), 30);
/* cleanup */
- g_clear_pointer (&device, g_object_unref);
+ g_object_unref (device);
}
TEST(DeviceTest, NewFromVariant)
@@ -94,6 +94,6 @@ TEST(DeviceTest, NewFromVariant)
ASSERT_EQ (indicator_power_device_get_time(device), 30);
/* cleanup */
- g_clear_pointer (&device, g_object_unref);
- g_clear_pointer (&variant, g_variant_unref);
+ g_object_unref (device);
+ g_variant_unref (variant);
}
diff --git a/tests/test-indicator.cc b/tests/test-indicator.cc
index 2f16176..e3533e9 100644
--- a/tests/test-indicator.cc
+++ b/tests/test-indicator.cc
@@ -47,6 +47,6 @@ TEST(IndicatorTest, GObjectNew)
GObject * o = G_OBJECT (g_object_new (INDICATOR_POWER_TYPE, NULL));
ASSERT_TRUE (o != NULL);
ASSERT_TRUE (IS_INDICATOR_POWER(o));
- g_clear_pointer (&o, g_object_unref);
+ g_object_unref (o);
}