summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2010-01-12 15:41:50 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-02-01 01:28:06 +0100
commit112def3c17a45f73def02c17509d68b46ff25966 (patch)
treee7efe7245176df651435cb841619e2d05e77df8a /src/gallium/drivers/nv40
parent71b32cc838ea682e60ea7a4a0e0ae17edce89c9a (diff)
downloadexternal_mesa3d-112def3c17a45f73def02c17509d68b46ff25966.zip
external_mesa3d-112def3c17a45f73def02c17509d68b46ff25966.tar.gz
external_mesa3d-112def3c17a45f73def02c17509d68b46ff25966.tar.bz2
nv50/nv40/nv30: fix small memory leak of nouveau_resources on screen_destroy
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r--src/gallium/drivers/nv40/nv40_screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv40/nv40_screen.c b/src/gallium/drivers/nv40/nv40_screen.c
index b1a7343..56fb809 100644
--- a/src/gallium/drivers/nv40/nv40_screen.c
+++ b/src/gallium/drivers/nv40/nv40_screen.c
@@ -157,9 +157,9 @@ nv40_screen_destroy(struct pipe_screen *pscreen)
so_ref(NULL, &screen->state[i]);
}
- nouveau_resource_free(&screen->vp_exec_heap);
- nouveau_resource_free(&screen->vp_data_heap);
- nouveau_resource_free(&screen->query_heap);
+ nouveau_resource_destroy(&screen->vp_exec_heap);
+ nouveau_resource_destroy(&screen->vp_data_heap);
+ nouveau_resource_destroy(&screen->query_heap);
nouveau_notifier_free(&screen->query);
nouveau_notifier_free(&screen->sync);
nouveau_grobj_free(&screen->curie);