blitz icon indicating copy to clipboard operation
blitz copied to clipboard

Fix a memory leak with Parley fonts

Open DavidHusicka opened this issue 6 months ago • 1 comments

Using a self-referencing struct and bunch of unsafe, we are able to extend the lifetime of the font names and their array without leaking them. These are necessary for a TextStyle which is part of Parley. This creates a shim called "OwnedTextStyle" that owns the data.

DavidHusicka avatar Aug 12 '24 07:08 DavidHusicka