egl: Don't free source error after propagating it
local_error in meta_egl_query_device_string() is using g_autoptr,
meaning that it was getting freed after g_propagate_error(). This then
would result in error->message becoming invalid, causing crashes when
logging the error message later on.
Fixes: 8234f5bc7
("egl: Return success status from meta_egl_query_device_string")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3758>
This commit is contained in:
parent
eaf69fdea8
commit
7a38e12ed0
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ meta_egl_query_device_string (MetaEgl *egl,
|
||||||
check_egl_error (&local_error);
|
check_egl_error (&local_error);
|
||||||
if (local_error)
|
if (local_error)
|
||||||
{
|
{
|
||||||
g_propagate_error (error, local_error);
|
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue