diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-02-23 22:51:40 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-02-23 22:51:40 (GMT) |
commit | 526985383c4e601775b4f04b273566b8ab930a58 (patch) | |
tree | b248ff952c9054e8afa47dcaff279c17d51009fe /src | |
parent | 89f9d10299e5ae520e2652b03abced1cdedca064 (diff) |
Defined a working way to build routines from Python.
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/disass/routines.c | 2 | ||||
-rw-r--r-- | src/analysis/routine.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/disass/routines.c b/src/analysis/disass/routines.c index 5fc1dcd..be68d68 100644 --- a/src/analysis/disass/routines.c +++ b/src/analysis/disass/routines.c @@ -405,6 +405,8 @@ void g_routines_study_handle_blocks(GRoutinesStudy *study, GBinRoutine *routine, rank_routine_blocks(routine); + g_object_unref(G_OBJECT(blocks)); + /* Nettoyage final */ end_dragon_knight(knight); diff --git a/src/analysis/routine.c b/src/analysis/routine.c index 02bd167..8c38ff1 100644 --- a/src/analysis/routine.c +++ b/src/analysis/routine.c @@ -792,6 +792,8 @@ void g_binary_routine_set_basic_blocks(GBinRoutine *routine, GBlockList *blocks) { g_clear_object(&routine->blocks); + g_object_ref(G_OBJECT(blocks)); + routine->blocks = blocks; } |