Forgetting to delete leads to memoryleaks

This commit is contained in:
Dynamitos committed 2023-11-07 16:55:13 +01:00
1 parent 46a0befb80
commit ecb5050dc7
29 files changed
+178 -173

No files matched your search

+1 -1
View File
@@ -226,7 +226,7 @@ TextPass::FontData& TextPass::getFontData(PFontAsset font)
gd.bearing = value.bearing;
gd.size = value.size;
gd.advance = value.advance;
textures.add(value.texture);
textures.add(font->getTexture(value.textureIndex));
}
fd.glyphDataSet = glyphData;