diff options
Diffstat (limited to 'src/analysis/db')
-rw-r--r-- | src/analysis/db/items/comment.c | 2 | ||||
-rw-r--r-- | src/analysis/db/items/switcher.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c index 45331b8..55893d1 100644 --- a/src/analysis/db/items/comment.c +++ b/src/analysis/db/items/comment.c @@ -638,6 +638,8 @@ static bool g_db_comment_run(GDbComment *comment, GLoadedBinary *binary, bool ap } + g_object_unref(G_OBJECT(instr)); + g_object_unref(G_OBJECT(proc)); } diff --git a/src/analysis/db/items/switcher.c b/src/analysis/db/items/switcher.c index 15354e9..748c934 100644 --- a/src/analysis/db/items/switcher.c +++ b/src/analysis/db/items/switcher.c @@ -527,7 +527,7 @@ static bool g_db_switcher_run(GDbSwitcher *switcher, GLoadedBinary *binary, ImmO } result = G_IS_IMM_OPERAND(op); - if (!result) goto exit_instr; + if (!result) goto exit_operand; /* Traitement au niveau du rendu graphique */ @@ -559,6 +559,10 @@ static bool g_db_switcher_run(GDbSwitcher *switcher, GLoadedBinary *binary, ImmO /* TODO g_object_unref(G_OBJECT(buffer));*/ + exit_operand: + + g_object_unref(G_OBJECT(proc)); + exit_instr: g_object_unref(G_OBJECT(proc)); |