summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);