From 5235429714d9cc8425e6178eb7199e7ab55ff3c0 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 22 Apr 2018 20:54:37 +0200
Subject: Fixed a mistake when loading a bad field from Dex pool.

---
 plugins/dex/pool.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/dex/pool.c b/plugins/dex/pool.c
index b65c133..9f3d55d 100644
--- a/plugins/dex/pool.c
+++ b/plugins/dex/pool.c
@@ -416,8 +416,7 @@ GBinVariable *get_field_from_dex_pool(GDexFormat *format, uint32_t index)
 
  gffdp_bad_owner:
 
-    g_object_ref(G_OBJECT(type));
-    g_object_unref(G_OBJECT(result));
+    g_object_unref(G_OBJECT(field));
 
  gffdp_bad_name:
 
-- 
cgit v0.11.2-87-g4458