mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16: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)
|
||||
{
|
||||
gpointer func;
|
||||
GError *local_error = NULL;
|
||||
|
||||
func = gi_vfunc_info_get_address (info, implementor, error);
|
||||
if (*error != NULL)
|
||||
return FALSE;
|
||||
func = gi_vfunc_info_get_address (info, implementor, &local_error);
|
||||
if (local_error != NULL)
|
||||
{
|
||||
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return gi_callable_info_invoke ((GICallableInfo*) info,
|
||||
func,
|
||||
|
Loading…
Reference in New Issue
Block a user