Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinearGradientBrush cause memory leak #37

Closed
gilsonwang opened this issue Oct 24, 2020 · 0 comments
Closed

LinearGradientBrush cause memory leak #37

gilsonwang opened this issue Oct 24, 2020 · 0 comments
Assignees

Comments

@gilsonwang
Copy link

gilsonwang commented Oct 24, 2020

I found that the memory always get more and more when creating a new component by using LinearGradientBrush for background painting, even the component already disposed.
I try to figure out what cause this problem.

There is probably a reason that.
While using CreateLinearGradientBrush() function in Brush.cpp., it calls CreateGradientStopCollection before CreateLinearGradientBrush but (what ?) did not release it.

@jingwood jingwood changed the title LinearGradientBrush casue memory leak LinearGradientBrush cause memory leak Oct 24, 2020
@jingwood jingwood self-assigned this Nov 23, 2020
@jingwood jingwood added resolved and removed todo labels Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants