Skip to content

display: Remove weak references on display finalization

Weak references are added when logical monitors are created, however we don't remove them when destroying the display.

This means that if a monitor survives to the display finalization (because may be referenced elsewhere) it will make g-c-c to crash during its finalization, as that will trigger the weak reference callback that will try to access to the already-finalized display.

Merge request reports