diff options
author | Colin Walters <walters@verbum.org> | 2010-12-06 11:14:53 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-12-06 11:14:53 -0500 |
commit | 10b88acfd4df8204fbc0763b5c8c90587c7c9a79 (patch) | |
tree | a8d69ffaa7d9da6316d6c39134e204d9f036d8ad /girepository | |
parent | ef97d3e097dccf44d790b2ab02d12189f9a04a6c (diff) | |
download | gobject-introspection-10b88acfd4df8204fbc0763b5c8c90587c7c9a79.tar.gz |
g_object_info_find_method_using_interfaces: Fix crash if not found
If a method wasn't found, we'd try to unref NULL.
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/giobjectinfo.c | 2 |
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; } |