summaryrefslogtreecommitdiff
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
parentba1ec43a4a376d30db5daf69f24a563f615bc428 (diff)
Added a missing g_object_ref() before g_object_unref().
-rw-r--r--ChangeLog5
-rw-r--r--src/arch/dalvik/operands/pool.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0214e7f..f05fa05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+17-07-26 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/arch/dalvik/operands/pool.c:
+ Add a missing g_object_ref() before g_object_unref().
+
17-07-15 Cyrille Bagard <nocbos@gmail.com>
* src/analysis/disass/routines.c:
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);