summaryrefslogtreecommitdiff
path: root/plugins/dex/field.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-05-04 17:56:33 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-05-04 17:57:10 (GMT)
commitb92a5e56de9198c08956ce486cd12712d7034731 (patch)
tree4ee902ed116b9988dfd284186c725f1bb1d20f22 /plugins/dex/field.c
parentc9f7b4491b368f886b0852ba166cef969fd6d20f (diff)
Created a GLib object for the Dex pool.
Diffstat (limited to 'plugins/dex/field.c')
-rw-r--r--plugins/dex/field.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/dex/field.c b/plugins/dex/field.c
index 620d159..a3b9ec5 100644
--- a/plugins/dex/field.c
+++ b/plugins/dex/field.c
@@ -166,11 +166,16 @@ static void g_dex_field_finalize(GDexField *field)
GDexField *g_dex_field_new(GDexFormat *format, const encoded_field *seed, uleb128_t *last)
{
GDexField *result; /* Composant à retourner */
+ GDexPool *pool; /* Table de ressources */
GBinVariable *variable; /* Variable de représentation */
*last += seed->field_idx_diff;
- variable = get_field_from_dex_pool(format, *last);
+ pool = g_dex_format_get_pool(format);
+
+ variable = g_dex_pool_get_field(pool, *last);
+
+ g_object_unref(G_OBJECT(pool));
if (variable == NULL)
return NULL;