mesa/main: Fix tmp_row memory leak in texstore_rgba_integer.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
committed by
Jason Ekstrand
parent
d76be6bd60
commit
80bffde0a2
@@ -1667,8 +1667,10 @@ texstore_rgba_integer(TEXSTORE_PARAMS)
|
||||
|
||||
assert(is_array && !normalized);
|
||||
|
||||
if (!is_array)
|
||||
if (!is_array) {
|
||||
free(tmp_row);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
invert_swizzle(dst2rgba, rgba2dst);
|
||||
compute_component_mapping(GL_RGBA, baseInternalFormat, base2rgba);
|
||||
|
||||
Reference in New Issue
Block a user