mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01: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:
parent
eb153575a4
commit
d01de67d02
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user