Skip to content

backend/native: Handle NULL priv->startup_render_devices

In add_drm_device, calling g_hash_table_insert with NULL for the hash table (which happens for any device added after mutter finished starting up) would presumably just drop the key/value pointers on the floor, leaking the string & MetaRenderDevice object referenced by them. Fixing this should help for the referenced issue.

In meta_backend_native_take_render_device, g_hash_table_steal_extended would presumably return FALSE (and log a warning), so the behaviour would be "correct" by chance.

Issue: #3785 Fixes: 58c3734d ("backend/native: Prepare render devices earlier than KMS")

Merge request reports

Loading