diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-08-11 12:23:28 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-08-11 12:23:28 (GMT) |
commit | 7af6b79557f0aa57200fbd798d3eca604615ee41 (patch) | |
tree | cade5cac194f894894923ce72fb54c43b9783bae /plugins/dalvik | |
parent | 079e997ce5106dce42b08527a406850f950d291f (diff) |
Added a basic check before releasing cached registers.
Diffstat (limited to 'plugins/dalvik')
-rw-r--r-- | plugins/dalvik/register.c | 2 |
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); |