summaryrefslogtreecommitdiff
path: root/plugins/dalvik
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dalvik')
-rw-r--r--plugins/dalvik/register.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dalvik/register.c b/plugins/dalvik/register.c
index 0120495..c6bd2c7 100644
--- a/plugins/dalvik/register.c
+++ b/plugins/dalvik/register.c
@@ -501,7 +501,7 @@ void clean_dalvik_register_cache(void)
G_LOCK(_dreg_mutex);
for (i = 0; i < _dreg_count; i++)
- g_object_unref(G_OBJECT(_dalvik_registers[i]));
+ g_clear_object(&_dalvik_registers[i]);
if (_dalvik_registers != NULL)
free(_dalvik_registers);