summaryrefslogtreecommitdiff
path: root/src/format/elf/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/elf/elf.c')
-rw-r--r--src/format/elf/elf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/format/elf/elf.c b/src/format/elf/elf.c
index a48e3b3..4bc8bbf 100644
--- a/src/format/elf/elf.c
+++ b/src/format/elf/elf.c
@@ -39,7 +39,6 @@
#include "strings.h"
#include "symbols.h"
#include "../../gui/panels/log.h"
-#include "../../plugins/pglist.h"
@@ -294,15 +293,16 @@ GBinFormat *g_elf_format_new(GBinContent *content, GExeFormat *parent)
}
- /* TODO : à bouger dans un épilogue commun */
+ if (!g_binary_format_complete_loading(G_BIN_FORMAT(result)))
+ goto gefn_error;
- handle_binary_format(PGA_FORMAT_LOADER_LAST, G_BIN_FORMAT(result));
+ return G_BIN_FORMAT(result);
- g_binary_format_delete_duplicated_symbols(G_BIN_FORMAT(result));
+ gefn_error:
- /* .... */
+ g_object_unref(G_OBJECT(result));
- return G_BIN_FORMAT(result);
+ return NULL;
}