mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
Add alot of memory leak fixes
This commit is contained in:
@@ -5,6 +5,9 @@ Screen::Screen(const std::string& filePath, Vector2f pos, Vector2f size, Texture
|
||||
m_Background = manager->GetTexture(filePath);
|
||||
}
|
||||
Screen::~Screen() {
|
||||
for (Button* b : m_Buttons) {
|
||||
delete b;
|
||||
}
|
||||
}
|
||||
void Screen::Update(float elapsedSecs) {
|
||||
for (Button* b : m_Buttons) {
|
||||
|
||||
Reference in New Issue
Block a user