ckerr

#49536: fix: potential dangling pointer in api::Screen

Merged
Created: Jan 26, 2026, 2:25:17 PM
Merged: Jan 27, 2026, 3:27:39 PM
4 comments
Target: main

Description of Change

Fixes a regression from #49506. See #49506 (comment) for details.

This regression just landed yesterday so I don't this is included in any releases. I'm going to skip the release notes for this fix.

Checklist

Release Notes

Notes: none.

Backports

No Backports Requested

This pull request doesn't have any backports requested or created for older release branches.

What are backports?

Backports are copies of changes made to the main branch that are applied to older release branches. They ensure that bug fixes and important changes are available in maintained older versions of Electron.

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron