mono / libgdiplus

C-based implementation of the GDI+ API
http://www.mono-project.com/
MIT License
335 stars 171 forks source link

Fix memory leaks cloning Path/Line gradient brushes #591

Closed hughbe closed 5 years ago

hughbe commented 5 years ago

We'd allocate memory in gdip_linear_gradient_new and then override it immediately. Avoid allocating by just calling GdipAlloc instead of that method