mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-17 07:11:48 +01:00
Add alot of memory leak fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user