diff options
author | Brian Paul <[email protected]> | 2012-02-08 20:10:15 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-10 08:06:57 -0700 |
commit | fcca8f0b7aeedaf22b33223b6148a6b5731ba89c (patch) | |
tree | 14341cb7b7e2be08ce41e9a81b85931ce447fa91 /src | |
parent | 1a4f398a63f6b7b9258a0a63ba22fb0e95937c54 (diff) |
mesa: fix error handling in get_tex_rgba_compressed()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texgetimage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 8bbea831c31..a02a4915695 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -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; } } |