[gobject-introspection] g_object_info_find_method_using_interfaces: Fix crash if not found
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g_object_info_find_method_using_interfaces: Fix crash if not found
- Date: Mon, 6 Dec 2010 16:27:08 +0000 (UTC)
commit 10b88acfd4df8204fbc0763b5c8c90587c7c9a79
Author: Colin Walters <walters verbum org>
Date: Mon Dec 6 11:14:53 2010 -0500
g_object_info_find_method_using_interfaces: Fix crash if not found
If a method wasn't found, we'd try to unref NULL.
girepository/giobjectinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/giobjectinfo.c b/girepository/giobjectinfo.c
index d6bdce6..fbf5d8a 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]