summaryrefslogtreecommitdiff
path: root/src/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs')
-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);