[Fix] Leaking textures.

This commit is contained in:
Rtch90 2018-08-21 23:37:58 +01:00
parent 3a7be80548
commit 3e14d9cd5a
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
namespace Gui {
Image::~Image(void) {
#pragma message("Warning: Leaking GL textures..")
glDeleteTextures(1, &m_tex);
}
Image::Image(const char* filename) : Widget() {

View File

@ -27,6 +27,7 @@ public:
glDisable(GL_TEXTURE_2D);
}
virtual ~DeadVideoLink(void) {
glDeleteTextures(1, &m_tex);
delete m_message;
}
virtual void Draw(void) {