mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user