noop: Always use memory allocation macros.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 25 Sep 2011 10:48:17 +0000 (11:48 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 25 Sep 2011 11:18:55 +0000 (12:18 +0100)
src/gallium/drivers/noop/noop_pipe.c

index ead97df494cce60b652f4c2d58625afb088bc95a..baa42552c9d169be0455c7b50206b5c90d5f9786 100644 (file)
@@ -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);
 }