diff options
Diffstat (limited to 'src/gui/panels/symbols.c')
-rw-r--r-- | src/gui/panels/symbols.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c index cb10a54..e5fd390 100644 --- a/src/gui/panels/symbols.c +++ b/src/gui/panels/symbols.c @@ -635,9 +635,9 @@ static void change_symbols_panel_current_binary(GSymbolsPanel *panel, GLoadedBin static void reload_symbols_for_new_list_view(GSymbolsPanel *panel) { GExeFormat *format; /* Format associé au binaire */ - GArchProcessor *proc; /* Architecture utilisée */ GBinSymbol **symbols; /* Symboles à représenter */ size_t sym_count; /* Qté de symboles présents */ + GArchProcessor *proc; /* Architecture utilisée */ MemoryDataSize size; /* Taille des localisations */ size_t i; /* Boucle de parcours */ cairo_surface_t *icon; /* Image associée au symbole */ @@ -646,11 +646,12 @@ static void reload_symbols_for_new_list_view(GSymbolsPanel *panel) GtkTreeIter iter; /* Point d'insertion */ format = g_loaded_binary_get_format(panel->binary); - proc = get_arch_processor_from_format(format); symbols = g_binary_format_get_symbols(G_BIN_FORMAT(format), &sym_count); + proc = g_loaded_binary_get_processor(panel->binary); size = g_arch_processor_get_memory_size(proc); + g_object_unref(G_OBJECT(proc)); for (i = 0; i < sym_count; i++) { @@ -801,9 +802,9 @@ static bool find_parent_for_symbol(GtkTreeStore *store, const GBinSymbol *symbol static void reload_symbols_for_new_tree_view(GSymbolsPanel *panel) { GExeFormat *format; /* Format associé au binaire */ - GArchProcessor *proc; /* Architecture utilisée */ GBinSymbol **symbols; /* Symboles à représenter */ size_t sym_count; /* Qté de symboles présents */ + GArchProcessor *proc; /* Architecture utilisée */ MemoryDataSize size; /* Taille des localisations */ size_t i; /* Boucle de parcours */ GtkTreeIter parent; /* Point d'insertion parent */ @@ -813,11 +814,12 @@ static void reload_symbols_for_new_tree_view(GSymbolsPanel *panel) GtkTreeIter iter; /* Point d'insertion */ format = g_loaded_binary_get_format(panel->binary); - proc = get_arch_processor_from_format(format); symbols = g_binary_format_get_symbols(G_BIN_FORMAT(format), &sym_count); + proc = g_loaded_binary_get_processor(panel->binary); size = g_arch_processor_get_memory_size(proc); + g_object_unref(G_OBJECT(proc)); for (i = 0; i < sym_count; i++) { |