Commit 76a423ef authored by Thomas Andersen's avatar Thomas Andersen Committed by Eduardo Lima Mitev

mesa: remove null check before free

Reviewed-by: Eduardo Lima Mitev's avatarEduardo Lima Mitev <elima@igalia.com>
parent 3a6763f0
......@@ -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 */
......
......@@ -557,8 +557,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
}
done:
if (rgba)
free(rgba);
free(rgba);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment