27 Jan
2020
27 Jan
'20
11:08 a.m.
"Vincent Povirk (they/them)" <vincent(a)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. -- Dmitry.