radeon: Fix memory leaks from early return.

This commit is contained in:
Vinson Lee 2010-03-11 21:55:44 -08:00
parent 5d5c524cbe
commit 39c2d3ecd9

View file

@ -539,6 +539,8 @@ static radeon_mipmap_tree * get_biggest_matching_miptree(radeonTexObj *texObj,
}
if (mtCount == 0) {
free(mtSizes);
free(mts);
return NULL;
}