summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--girepository/giobjectinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/girepository/giobjectinfo.c b/girepository/giobjectinfo.c
index d6bdce66..fbf5d8ab 100644
--- a/girepository/giobjectinfo.c
+++ b/girepository/giobjectinfo.c
@@ -465,7 +465,7 @@ g_object_info_find_method_using_interfaces (GIObjectInfo *info,
}
if (implementor)
*implementor = implementor_result;
- else
+ else if (implementor_result != NULL)
g_base_info_unref ((GIBaseInfo*) implementor_result);
return result;
}