mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 08:04:50 +00:00
backends/native: Fix double free of error
error is an autoptr, so must not be explicitly freed.
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1852
Fixes: 5c500ad402
("backend: Move GPU ownership from the monitor manager to the backend")
https://gitlab.gnome.org/GNOME/mutter/merge_requests/960
This commit is contained in:
@@ -583,7 +583,6 @@ on_udev_device_added (MetaUdev *udev,
|
|||||||
{
|
{
|
||||||
g_warning ("Failed to hotplug secondary gpu '%s': %s",
|
g_warning ("Failed to hotplug secondary gpu '%s': %s",
|
||||||
device_path, error->message);
|
device_path, error->message);
|
||||||
g_error_free (error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user