aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-08-06 09:53:15 +0200
committerLuca Barbieri <[email protected]>2010-08-11 11:17:35 +0200
commit24f5ebb1d735ca7e8944b346359de5941e707047 (patch)
treea02e592b5cd3a136d26c824cfd54c86c357e735c /src/gallium/auxiliary
parent58b104d7f0890434aadbdebcd6002ba0a0e132ec (diff)
u_surfaces: fix surface leak due to off by one
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_surfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_surfaces.c b/src/gallium/auxiliary/util/u_surfaces.c
index b5d21570d57..f6e5801ef65 100644
--- a/src/gallium/auxiliary/util/u_surfaces.c
+++ b/src/gallium/auxiliary/util/u_surfaces.c
@@ -99,7 +99,7 @@ util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void (
if(us->u.array)
{
unsigned i;
- for(i = 0; i < pt->last_level; ++i)
+ for(i = 0; i <= pt->last_level; ++i)
{
struct pipe_surface *ps = us->u.array[i];
if(ps)