diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-07-26 12:03:01 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-07-26 12:03:01 (GMT) |
commit | e62cb2f183a8ff70d54a20bd869944047700fe8a (patch) | |
tree | 0ed8bae6c985fb5b57b1fd412b416a8d74c062e2 | |
parent | ba1ec43a4a376d30db5daf69f24a563f615bc428 (diff) |
Added a missing g_object_ref() before g_object_unref().
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/arch/dalvik/operands/pool.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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); |