summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girnode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/girepository/girnode.c b/girepository/girnode.c
index afb71e57..43614742 100644
--- a/girepository/girnode.c
+++ b/girepository/girnode.c
@@ -1151,6 +1151,10 @@ _g_ir_find_node (GIrTypelibBuild *build,
target_name = names[1];
}
+ /* find_namespace() may return NULL. */
+ if (target_module == NULL)
+ goto done;
+
for (l = target_module->entries; l; l = l->next)
{
GIrNode *node = (GIrNode *)l->data;
@@ -1162,6 +1166,7 @@ _g_ir_find_node (GIrTypelibBuild *build,
}
}
+done:
g_strfreev (names);
return return_node;