diff options
Diffstat (limited to 'nouveau/nouveau_resource.c')
-rw-r--r-- | nouveau/nouveau_resource.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nouveau/nouveau_resource.c b/nouveau/nouveau_resource.c index 6bef7567..7acaf7db 100644 --- a/nouveau/nouveau_resource.c +++ b/nouveau/nouveau_resource.c @@ -41,6 +41,15 @@ nouveau_resource_init(struct nouveau_resource **heap, return 0; } +void +nouveau_resource_destroy(struct nouveau_resource **heap) +{ + if (!*heap) + return; + free(*heap); + *heap = NULL; +} + int nouveau_resource_alloc(struct nouveau_resource *heap, unsigned size, void *priv, struct nouveau_resource **res) |