diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-06-22 23:40:11 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-06-22 23:40:11 -0700 |
commit | ee2c6d748de170e0ffc30bb4a8366526a1a25f65 (patch) | |
tree | 6b10ea1da24983e1836d133fa552671f33008e79 /src/gallium/drivers/galahad | |
parent | a6cc91487446f8e1e72e4f67823a359c0b3a41d6 (diff) |
id, glhd: Fix malloc/calloc of struct.
( >&)
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r-- | src/gallium/drivers/galahad/glhd_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/galahad/glhd_objects.c b/src/gallium/drivers/galahad/glhd_objects.c index 4682d717d8..c9680d13e1 100644 --- a/src/gallium/drivers/galahad/glhd_objects.c +++ b/src/gallium/drivers/galahad/glhd_objects.c @@ -120,7 +120,7 @@ galahad_sampler_view_create(struct galahad_context *glhd_context, assert(view->texture == glhd_resource->resource); - glhd_view = MALLOC(sizeof(struct galahad_sampler_view)); + glhd_view = CALLOC_STRUCT(galahad_sampler_view); glhd_view->base = *view; glhd_view->base.reference.count = 1; |