g_object_info_find_method_using_interfaces: Fix crash if not found

If a method wasn't found, we'd try to unref NULL.
This commit is contained in:
Colin Walters 2010-12-06 11:14:53 -05:00
parent eb153575a4
commit d01de67d02

View File

@ -465,7 +465,7 @@ g_object_info_find_method_using_interfaces (GIObjectInfo *info,
} }
if (implementor) if (implementor)
*implementor = implementor_result; *implementor = implementor_result;
else else if (implementor_result != NULL)
g_base_info_unref ((GIBaseInfo*) implementor_result); g_base_info_unref ((GIBaseInfo*) implementor_result);
return result; return result;
} }