nouveau: Catch some more leaks.

This commit is contained in:
Younes Manton 2008-12-20 14:42:29 -05:00
parent c10db52fcd
commit 9beb004885
2 changed files with 3 additions and 0 deletions

View file

@ -745,6 +745,7 @@ static int vlFlush
}
pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, &mc->buffered_surface->render_fence);
pipe->screen->tex_surface_release(pipe->screen, mc->render_target.cbufs[0]);
for (i = 0; i < 3; ++i)
mc->zero_block[i].x = -1.0f;

View file

@ -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);