summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/disass/fetch.c6
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;