Add alot of memory leak fixes

This commit is contained in:
Bram Verhulst
2024-04-23 11:17:17 +02:00
parent e75b80eea8
commit 1b90f222a4
27 changed files with 234 additions and 48 deletions

View File

@@ -10,6 +10,7 @@ Text::Text(const std::string& text, const std::string& fontPath, int size, const
}
Text::~Text() {
if(m_IsCreatedOk && m_Texture->IsCreationOk()) {
delete m_Texture;
}
}
void Text::Draw(const Vector2f& pos) const {