mirror of https://github.com/odrling/Aegisub
Re-fix the fix in r3091; the issue wasn't what I thought it was, it was that memory was being freed twice. Fixes #906.
Originally committed to SVN as r3100.
This commit is contained in:
parent
d1e5ff32e6
commit
a9b479bd53
|
@ -61,7 +61,6 @@ OpenGLText::~OpenGLText() {
|
|||
/////////
|
||||
// Reset
|
||||
void OpenGLText::Reset() {
|
||||
for (unsigned int i=0;i<textures.size();i++) delete textures[i];
|
||||
textures.clear();
|
||||
glyphs.clear();
|
||||
}
|
||||
|
@ -268,8 +267,10 @@ OpenGLTextTexture::OpenGLTextTexture(int w,int h) {
|
|||
//////////////////////
|
||||
// Texture destructor
|
||||
OpenGLTextTexture::~OpenGLTextTexture() {
|
||||
if (tex)
|
||||
if (tex) {
|
||||
glDeleteTextures(1,&tex);
|
||||
tex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue