diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/db/items/move.c | 5 | ||||
-rw-r--r-- | src/analysis/project.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c index 4fd1667..562d749 100644 --- a/src/analysis/db/items/move.c +++ b/src/analysis/db/items/move.c @@ -35,7 +35,7 @@ #include "../collection-int.h" #include "../item-int.h" -#include "../../../gui/editem.h" +#include "../../../gui/core/global.h" #include "../../../gtkext/gtkdisplaypanel.h" @@ -445,14 +445,13 @@ static bool g_db_move_run(const GDbMove *move, const vmpa2t *addr) /* Lancement de l'opĂ©ration */ - panel = g_editor_item_get_current_view(NULL); + panel = get_current_view(); if (panel != NULL) { params = (move_params *)calloc(1, sizeof(move_params)); params->panel = panel; - g_object_ref(G_OBJECT(panel)); copy_vmpa(¶ms->addr, addr); diff --git a/src/analysis/project.c b/src/analysis/project.c index 83b1ee4..9377247 100644 --- a/src/analysis/project.c +++ b/src/analysis/project.c @@ -1029,6 +1029,9 @@ GtkDisplayPanel *get_alt_view_for_view_panel(GtkDisplayPanel *panel, BinaryView break; } + if (result != NULL) + g_object_ref(G_OBJECT(result)); + return result; } |