summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-08 21:18:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-08 21:18:11 (GMT)
commit009f00f18ef49295a55e6389c0687d0d767f45b0 (patch)
tree72952e2d58ed28f9054476a604b191b32308e663 /src/analysis/disass
parentfaa334f84ea2ddac65358dde0f05c074747f4e39 (diff)
Reduced the number of produced reference links.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/links.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/analysis/disass/links.c b/src/analysis/disass/links.c
index cf33677..d67040b 100644
--- a/src/analysis/disass/links.c
+++ b/src/analysis/disass/links.c
@@ -273,8 +273,11 @@ void establish_links_for_instruction(GArchInstruction *instr, GBinFormat *format
if (target != NULL)
{
- g_arch_instruction_link_with(instr, target, ILT_REF);
+ if (!g_arch_instruction_has_link_to(instr, target))
+ g_arch_instruction_link_with(instr, target, ILT_REF);
+
g_object_unref(G_OBJECT(target));
+
}
}