diff options
author | José Fonseca <[email protected]> | 2011-09-25 11:48:17 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-09-25 12:18:55 +0100 |
commit | 785b9e7c780d8e436ef557a22cf916f7869f7390 (patch) | |
tree | b022df27aa71b1cc2651e49fa03a53768191512f /src/gallium/drivers/noop/noop_pipe.c | |
parent | 6921d4cd57927da779b4ff773ba85cfb67c7f7f1 (diff) |
noop: Always use memory allocation macros.
Diffstat (limited to 'src/gallium/drivers/noop/noop_pipe.c')
-rw-r--r-- | src/gallium/drivers/noop/noop_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c index ead97df494c..baa42552c9d 100644 --- a/src/gallium/drivers/noop/noop_pipe.c +++ b/src/gallium/drivers/noop/noop_pipe.c @@ -101,7 +101,7 @@ static struct pipe_resource *noop_resource_create(struct pipe_screen *screen, nresource->base = *templ; nresource->base.screen = screen; nresource->size = stride * templ->height0 * templ->depth0; - nresource->data = malloc(nresource->size); + nresource->data = MALLOC(nresource->size); pipe_reference_init(&nresource->base.reference, 1); if (nresource->data == NULL) { FREE(nresource); @@ -137,7 +137,7 @@ static void noop_resource_destroy(struct pipe_screen *screen, { struct noop_resource *nresource = (struct noop_resource *)resource; - free(nresource->data); + FREE(nresource->data); FREE(resource); } |