Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Abose/win hi dpi hdc leak #508

Merged
merged 2 commits into from
Mar 12, 2015
Merged

Abose/win hi dpi hdc leak #508

merged 2 commits into from
Mar 12, 2015

Conversation

abose
Copy link
Contributor

@abose abose commented Mar 10, 2015

Fix for issue. adobe/brackets/issues/10707:
"The function below doesn't release the drawing context it uses to get the Device Capabilities which could lead to instability -- Windows will allocate memory for new ones (unless you change the CEF Window class to use a shared DC)."

Releasing dc after calculating DPI scaling.

adobe/brackets/issues/10707:
The function doesn't release the drawing context it uses to get the
Device Capabilities which could lead to instability -- Windows will
allocate memory for new ones (unless you change the CEF Window class to
use a shared DC).

Even though this is only called once per Window, each new Debugger
Window, Popup window (PSDLens Cloud Login), or using Debug > New
Brackets Window will create a new window and eventually Brackets will
run out of handles.
@nethip
Copy link
Contributor

nethip commented Mar 12, 2015

LGTM @JeffryBooher Could you do a quick review of this and call out anything that is conspicuously wrong?

@JeffryBooher
Copy link
Contributor

LGTM

nethip added a commit that referenced this pull request Mar 12, 2015
@nethip nethip merged commit 84a16a9 into master Mar 12, 2015
@nethip nethip deleted the abose/WinHiDpiHDCLeak branch March 12, 2015 06:05
nethip added a commit that referenced this pull request Dec 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants