The WriteToTexture method is storing the coordinate for the "texture mapped font" inside a raw array that is allocated by hand with new[] and deleted in a "goto cleanup". That's code copy pasted from a wiki. It should be modernized an maybe rewritten because it is quite confusing.
In any case. There should be a vector here, not a array dynamically allocated with new[]
The WriteToTexture method is storing the coordinate for the "texture mapped font" inside a raw array that is allocated by hand with new[] and deleted in a "goto cleanup". That's code copy pasted from a wiki. It should be modernized an maybe rewritten because it is quite confusing.
In any case. There should be a vector here, not a array dynamically allocated with new[]