diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/analysis/disass/fetch.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,10 @@ 16-12-15 Cyrille Bagard <nocbos@gmail.com> + * src/analysis/disass/fetch.c: + Fix a runtime warning occurring from Python standalone scripts. + +16-12-15 Cyrille Bagard <nocbos@gmail.com> + * src/arch/instruction.c: * src/arch/instruction.h: Remove dead code. diff --git a/src/analysis/disass/fetch.c b/src/analysis/disass/fetch.c index 0005378..1a55eeb 100644 --- a/src/analysis/disass/fetch.c +++ b/src/analysis/disass/fetch.c @@ -186,7 +186,8 @@ static void g_delayed_fetching_dispose(GDelayedFetching *fetching) g_object_unref(G_OBJECT(fetching->ctx)); - g_object_unref(G_OBJECT(fetching->status)); + if (fetching->status != NULL) + g_object_unref(G_OBJECT(fetching->status)); G_OBJECT_CLASS(g_delayed_fetching_parent_class)->dispose(G_OBJECT(fetching)); @@ -244,7 +245,8 @@ static GDelayedFetching *g_delayed_fetching_new(const GDelayedFetching *template result->count = template->count; result->status = template->status; - g_object_ref(G_OBJECT(result->status)); + if (result->status != NULL) + g_object_ref(G_OBJECT(result->status)); result->id = template->id; |