summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/identity
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-06-22 23:40:11 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-06-22 23:40:11 -0700
commitee2c6d748de170e0ffc30bb4a8366526a1a25f65 (patch)
tree6b10ea1da24983e1836d133fa552671f33008e79 /src/gallium/drivers/identity
parenta6cc91487446f8e1e72e4f67823a359c0b3a41d6 (diff)
id, glhd: Fix malloc/calloc of struct.
( >&)
Diffstat (limited to 'src/gallium/drivers/identity')
-rw-r--r--src/gallium/drivers/identity/id_objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/identity/id_objects.c b/src/gallium/drivers/identity/id_objects.c
index 82d06e7f605..cd364a2bc0c 100644
--- a/src/gallium/drivers/identity/id_objects.c
+++ b/src/gallium/drivers/identity/id_objects.c
@@ -120,7 +120,7 @@ identity_sampler_view_create(struct identity_context *id_context,
assert(view->texture == id_resource->resource);
- id_view = MALLOC(sizeof(struct identity_sampler_view));
+ id_view = CALLOC_STRUCT(identity_sampler_view);
id_view->base = *view;
id_view->base.reference.count = 1;