mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
givfuncinfo: Fix crash in GIVFuncInfo if a GError isn’t passed
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
parent
e79310e1d2
commit
7d90780bbb
@ -339,10 +339,14 @@ gi_vfunc_info_invoke (GIVFuncInfo *info,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gpointer func;
|
gpointer func;
|
||||||
|
GError *local_error = NULL;
|
||||||
|
|
||||||
func = gi_vfunc_info_get_address (info, implementor, error);
|
func = gi_vfunc_info_get_address (info, implementor, &local_error);
|
||||||
if (*error != NULL)
|
if (local_error != NULL)
|
||||||
return FALSE;
|
{
|
||||||
|
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return gi_callable_info_invoke ((GICallableInfo*) info,
|
return gi_callable_info_invoke ((GICallableInfo*) info,
|
||||||
func,
|
func,
|
||||||
|
Loading…
Reference in New Issue
Block a user