diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-15 19:10:37 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-15 19:10:37 (GMT) |
commit | b3aa48e2c40035ca33286d08055eb0933dd55b0c (patch) | |
tree | 442543a5d71cbf0f9b89ff64cd42c63ac6fb57db /src | |
parent | 12ebd5475a71466e7a9f3dc07a3f312e25bf639f (diff) |
Fixed a runtime warning occurring from Python standalone scripts.
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/disass/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |