[PATCH] gdiplus: Use refcounting for GpFontFamily instead of cloning.

Dmitry Timoshkov dmitry at baikal.ru
Mon Jan 27 11:08:49 CST 2020

"Vincent Povirk (they/them)" <vincent at codeweavers.com> wrote:

> I'm not convinced this requires reference counting. Maybe FontFamily
> objects only exist as part of a FontCollection, and their lifetime is
> based on that.

I thought about that, however I think that GdipCloneFontFamily needs to
allocate a copy and in order to avoid a memory leak GdipDeleteFontFamily
should be able to free it, and reference counting solves this problem.


More information about the wine-devel mailing list