radeon: Fix memory leaks from early return.
authorVinson Lee <vlee@vmware.com>
Fri, 12 Mar 2010 05:55:44 +0000 (21:55 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 12 Mar 2010 05:55:44 +0000 (21:55 -0800)
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c

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