summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorYounes Manton <younes.m@gmail.com>2008-12-20 14:42:29 -0500
committerYounes Manton <younes.m@gmail.com>2009-01-10 13:52:06 -0500
commit9beb004885ab5be652bcb733a5fd9ee729f89921 (patch)
treef63e33e9dd2d11bbdebfb28a8169e935ab5b0262 /src/gallium/winsys
parentc10db52fcdaf1e21699fa681b701f224b1410990 (diff)
nouveau: Catch some more leaks.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/nouveau/nouveau_channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/nouveau_channel.c b/src/gallium/winsys/drm/nouveau/nouveau_channel.c
index 3b4dcd1ecf..b7127f8860 100644
--- a/src/gallium/winsys/drm/nouveau/nouveau_channel.c
+++ b/src/gallium/winsys/drm/nouveau/nouveau_channel.c
@@ -118,6 +118,8 @@ nouveau_channel_free(struct nouveau_channel **chan)
nouveau_grobj_free(&nvchan->base.gart);
nouveau_grobj_free(&nvchan->base.nullobj);
+ free(nvchan->pb.buffers);
+ free(nvchan->pb.relocs);
cf.channel = nvchan->drm.channel;
drmCommandWrite(nvdev->fd, DRM_NOUVEAU_CHANNEL_FREE, &cf, sizeof(cf));
free(nvchan);