summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-26 12:03:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-26 12:03:01 (GMT)
commite62cb2f183a8ff70d54a20bd869944047700fe8a (patch)
tree0ed8bae6c985fb5b57b1fd412b416a8d74c062e2 /src
parentba1ec43a4a376d30db5daf69f24a563f615bc428 (diff)
Added a missing g_object_ref() before g_object_unref().
Diffstat (limited to 'src')
-rw-r--r--src/arch/dalvik/operands/pool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/dalvik/operands/pool.c b/src/arch/dalvik/operands/pool.c
index 055f58e..d4d3a51 100644
--- a/src/arch/dalvik/operands/pool.c
+++ b/src/arch/dalvik/operands/pool.c
@@ -402,6 +402,8 @@ GArchOperand *g_dalvik_pool_operand_new(GDexFormat *format, DalvikPoolType type,
result = g_object_new(G_TYPE_DALVIK_POOL_OPERAND, NULL);
+ g_object_ref(G_OBJECT(format));
+
result->format = format;
result->type = type;
result->index = (size == MDS_8_BITS ? index8 : index16);