summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-03 11:24:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-03 11:24:26 (GMT)
commit4d179bc994cf85832d08f468c7e4122ad23e9244 (patch)
tree3348d3c001c961e9e464a644c12c9fc85e78d9b5 /src/gui
parent77735c8c77497498e3beb4f5bcec7de3b592fcbd (diff)
Updated the reference counters when providing instruction links.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogs/gotox.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/dialogs/gotox.c b/src/gui/dialogs/gotox.c
index 4d28e59..97c031e 100644
--- a/src/gui/dialogs/gotox.c
+++ b/src/gui/dialogs/gotox.c
@@ -289,7 +289,7 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi
GtkTreeStore *store; /* Modèle de gestion */
size_t count; /* Nombre d'éléments présents */
size_t i; /* Boucle de parcours */
- instr_link_t *item; /* Instruction diverse liée */
+ const instr_link_t *item; /* Instruction diverse liée */
const vmpa2t *addr; /* Adresse à considérer */
/* Mise en place de la boîte de dialogue */
@@ -317,6 +317,8 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi
add_new_location_to_list(store, binary, addr, NULL);
+ unref_instr_link(item);
+
}
g_arch_instruction_unlock_src(instr);
@@ -337,6 +339,8 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi
add_new_location_to_list(store, binary, addr, NULL);
+ unref_instr_link(item);
+
}
g_arch_instruction_unlock_dest(instr);