mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 09:10:40 +02:00
nvc0: fix blitctx memory leak
Cc: "9.2 and 9.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
1048d89907
commit
2a7762bdb6
3 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ nvc0_destroy(struct pipe_context *pipe)
|
|||
nouveau_pushbuf_kick(nvc0->base.pushbuf, nvc0->base.pushbuf->channel);
|
||||
|
||||
nvc0_context_unreference_resources(nvc0);
|
||||
nvc0_blitctx_destroy(nvc0);
|
||||
|
||||
#ifdef NVC0_WITH_DRAW_MODULE
|
||||
draw_destroy(nvc0->draw);
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@
|
|||
struct nvc0_blitctx;
|
||||
|
||||
boolean nvc0_blitctx_create(struct nvc0_context *);
|
||||
void nvc0_blitctx_destroy(struct nvc0_context *);
|
||||
|
||||
struct nvc0_context {
|
||||
struct nouveau_context base;
|
||||
|
|
|
|||
|
|
@ -1246,6 +1246,13 @@ nvc0_blitctx_create(struct nvc0_context *nvc0)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
nvc0_blitctx_destroy(struct nvc0_context *nvc0)
|
||||
{
|
||||
if (nvc0->blit)
|
||||
FREE(nvc0->blit);
|
||||
}
|
||||
|
||||
void
|
||||
nvc0_init_surface_functions(struct nvc0_context *nvc0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue