summaryrefslogtreecommitdiff
path: root/plugins/fmtp
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-11-26 20:39:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-11-26 20:39:28 (GMT)
commit1252efcd18a845a7c2641354838c26ece3d6d873 (patch)
tree13d248454e99b76dd4c61fbd41c8c138ebb61eb7 /plugins/fmtp
parent84efc00d07f9574c3867f96a3a7333b0f9d154e6 (diff)
Increased the reference counter for provided operands and updated code.
Diffstat (limited to 'plugins/fmtp')
-rw-r--r--plugins/fmtp/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/fmtp/parser.c b/plugins/fmtp/parser.c
index fe41e9b..994b7b4 100644
--- a/plugins/fmtp/parser.c
+++ b/plugins/fmtp/parser.c
@@ -116,7 +116,7 @@ static bool parse_field_definition(const fmt_field_def *def, GBinFormat *format,
g_imm_operand_set_default_display(imm, def->disp_rules[i]);
- // TODO : unref(imm)
+ g_object_unref(G_OBJECT(imm));
}
@@ -139,7 +139,7 @@ static bool parse_field_definition(const fmt_field_def *def, GBinFormat *format,
imm = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, 0));
raw = g_imm_operand_get_raw_value(imm);
- // TODO : unref(imm)
+ g_object_unref(G_OBJECT(imm));
for (i = 0; i < def->comment.ccount; i++)
{