radeon: Fix memory leaks from early return.
This commit is contained in:
@@ -539,6 +539,8 @@ static radeon_mipmap_tree * get_biggest_matching_miptree(radeonTexObj *texObj,
|
||||
}
|
||||
|
||||
if (mtCount == 0) {
|
||||
free(mtSizes);
|
||||
free(mts);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user