mesa: fix error handling in get_tex_rgba_compressed()

This commit is contained in:
Brian Paul
2012-02-08 20:10:15 -07:00
parent 1a4f398a63
commit fcca8f0b7a
+2
View File
@@ -259,6 +259,8 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions,
}
else {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glGetTexImage");
free(tempImage);
return;
}
}