mesa: remove null check before free

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2016-05-04 06:15:37 +02:00
committed by Eduardo Lima Mitev
parent 3a6763f0a0
commit 76a423efe0
2 changed files with 2 additions and 4 deletions

View File

@@ -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 */

View File

@@ -557,8 +557,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
}
done:
if (rgba)
free(rgba);
free(rgba);
}