summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-05-04 06:15:37 +0200
committerEduardo Lima Mitev <elima@igalia.com>2016-05-05 09:50:38 +0200
commit76a423efe09dcaeb86badd3ec449da2ea56c5a9c (patch)
tree66e4ec4c1bca3c1990b31739789893c6b7a35443 /src/mesa/main/readpix.c
parent3a6763f0a078b2abc9a2b0dd43efc6efe73eee30 (diff)
downloadexternal_mesa3d-76a423efe09dcaeb86badd3ec449da2ea56c5a9c.zip
external_mesa3d-76a423efe09dcaeb86badd3ec449da2ea56c5a9c.tar.gz
external_mesa3d-76a423efe09dcaeb86badd3ec449da2ea56c5a9c.tar.bz2
mesa: remove null check before free
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 882d863..1cb06c7 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -608,8 +608,7 @@ read_rgba_pixels( struct gl_context *ctx,
dst, format, type);
}
- if (rgba)
- free(rgba);
+ free(rgba);
done_swap:
/* Handle byte swapping if required */