summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/format-int.h3
-rw-r--r--src/format/format.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h
index 5c1ae07..e01b597 100644
--- a/src/format/format-int.h
+++ b/src/format/format-int.h
@@ -30,6 +30,7 @@
#include "preload.h"
#include "../gtkext/gtkstatusstack.h"
+#include "../mangling/demangler.h"
@@ -68,6 +69,8 @@ struct _GBinFormat
GBinContent *content; /* Contenu binaire à étudier */
+ GCompDemangler *demangler; /* Décodage de noms privilégié */
+
virt_t *entry_points; /* Points d'entrée du code */
size_t ep_count; /* Nombre de ces points */
diff --git a/src/format/format.c b/src/format/format.c
index 89db51d..f71cc8f 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -144,6 +144,9 @@ static void g_binary_format_init(GBinFormat *format)
static void g_binary_format_dispose(GBinFormat *format)
{
+ if (format->demangler != NULL)
+ g_object_unref(format->demangler);
+
g_object_unref(format->info);
g_rw_lock_clear(&format->syms_lock);