mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 14:00:30 +01:00
nouveau: Catch some more leaks.
This commit is contained in:
parent
c10db52fcd
commit
9beb004885
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue