summaryrefslogtreecommitdiff
path: root/plugins/arm/v7
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/arm/v7')
-rw-r--r--plugins/arm/v7/registers/banked.c2
-rw-r--r--plugins/arm/v7/registers/basic.c2
-rw-r--r--plugins/arm/v7/registers/coproc.c2
-rw-r--r--plugins/arm/v7/registers/simd.c2
-rw-r--r--plugins/arm/v7/registers/special.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/plugins/arm/v7/registers/banked.c b/plugins/arm/v7/registers/banked.c
index c141d74..17eeb28 100644
--- a/plugins/arm/v7/registers/banked.c
+++ b/plugins/arm/v7/registers/banked.c
@@ -713,7 +713,7 @@ void clean_armv7_banked_register_cache(void)
G_LOCK(_av7_banked_reg_mutex);
for (i = 0; i < _av7_banked_reg_count; i++)
- g_object_unref(G_OBJECT(_armv7_banked_registers[i]));
+ g_clear_object(&_armv7_banked_registers[i]);
if (_armv7_banked_registers != NULL)
free(_armv7_banked_registers);
diff --git a/plugins/arm/v7/registers/basic.c b/plugins/arm/v7/registers/basic.c
index 526e864..0a4a768 100644
--- a/plugins/arm/v7/registers/basic.c
+++ b/plugins/arm/v7/registers/basic.c
@@ -448,7 +448,7 @@ void clean_armv7_basic_register_cache(void)
G_LOCK(_av7_basic_reg_mutex);
for (i = 0; i < _av7_basic_reg_count; i++)
- g_object_unref(G_OBJECT(_armv7_basic_registers[i]));
+ g_clear_object(&_armv7_basic_registers[i]);
if (_armv7_basic_registers != NULL)
free(_armv7_basic_registers);
diff --git a/plugins/arm/v7/registers/coproc.c b/plugins/arm/v7/registers/coproc.c
index 8200343..f30edec 100644
--- a/plugins/arm/v7/registers/coproc.c
+++ b/plugins/arm/v7/registers/coproc.c
@@ -428,7 +428,7 @@ void clean_armv7_cp_register_cache(void)
G_LOCK(_av7_cp_reg_mutex);
for (i = 0; i < _av7_cp_reg_count; i++)
- g_object_unref(G_OBJECT(_armv7_cp_registers[i]));
+ g_clear_object(&_armv7_cp_registers[i]);
if (_armv7_cp_registers != NULL)
free(_armv7_cp_registers);
diff --git a/plugins/arm/v7/registers/simd.c b/plugins/arm/v7/registers/simd.c
index ad84ede..ff9a242 100644
--- a/plugins/arm/v7/registers/simd.c
+++ b/plugins/arm/v7/registers/simd.c
@@ -519,7 +519,7 @@ void clean_armv7_simd_register_cache(void)
for (i = 0; i < SRM_COUNT; i++)
{
for (k = 0; k < _av7_simd_reg_count[i]; k++)
- g_object_unref(G_OBJECT(_armv7_simd_registers[i][k]));
+ g_clear_object(&_armv7_simd_registers[i][k]);
if (_armv7_simd_registers[i] != NULL)
free(_armv7_simd_registers[i]);
diff --git a/plugins/arm/v7/registers/special.c b/plugins/arm/v7/registers/special.c
index 156b9bf..e0579b4 100644
--- a/plugins/arm/v7/registers/special.c
+++ b/plugins/arm/v7/registers/special.c
@@ -472,7 +472,7 @@ void clean_armv7_special_register_cache(void)
G_LOCK(_av7_special_reg_mutex);
for (i = 0; i < _av7_special_reg_count; i++)
- g_object_unref(G_OBJECT(_armv7_special_registers[i]));
+ g_clear_object(&_armv7_special_registers[i]);
if (_armv7_special_registers != NULL)
free(_armv7_special_registers);