diff options
author | Thomas Hindoe Paaboel Andersen <[email protected]> | 2016-05-04 06:15:37 +0200 |
---|---|---|
committer | Eduardo Lima Mitev <[email protected]> | 2016-05-05 09:50:38 +0200 |
commit | 76a423efe09dcaeb86badd3ec449da2ea56c5a9c (patch) | |
tree | 66e4ec4c1bca3c1990b31739789893c6b7a35443 /src/mesa/main/texgetimage.c | |
parent | 3a6763f0a078b2abc9a2b0dd43efc6efe73eee30 (diff) |
mesa: remove null check before free
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r-- | src/mesa/main/texgetimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 4ac0ad4b7f5..fc3cc6b6e17 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -557,8 +557,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions, } done: - if (rgba) - free(rgba); + free(rgba); } |