diff options
Diffstat (limited to 'src/analysis/disass/output.c')
-rw-r--r-- | src/analysis/disass/output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c index 91c865a..d698c71 100644 --- a/src/analysis/disass/output.c +++ b/src/analysis/disass/output.c @@ -58,7 +58,7 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form GLangOutput *output; /* Modèle de sortie adéquat */ //GArchProcessor *proc; /* Architecture du binaire */ MemoryDataSize msize; /* Taille du bus d'adresses */ - const bin_t *content; /* Contenu binaire global */ + const GBinContent *content; /* Contenu binaire global */ #if 0 const mrange_t *range; /* Cou @@ -130,7 +130,7 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form //proc = get_arch_processor_from_format(format); msize = g_arch_processor_get_memory_size(proc); - content = g_binary_format_get_content(G_BIN_FORMAT(format), NULL); + content = g_binary_format_get_content(G_BIN_FORMAT(format)); #if 0 g_arch_instruction_get_location(instrs, NULL, NULL, &start); @@ -276,6 +276,7 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form } + g_object_unref(G_OBJECT(content)); /* free portions... */ |