summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-09-01 11:19:02 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2011-09-29 20:24:57 +0200
commite63f2787b6a8dd7ff7a093fea8017a0b74cac6fd (patch)
treefb327a2d464a623efede5cd1dd874627df7d5829 /src
parent5ec01ba7e85c41fce53ee5c2c3b53036923a0924 (diff)
downloadexternal_mesa3d-e63f2787b6a8dd7ff7a093fea8017a0b74cac6fd.zip
external_mesa3d-e63f2787b6a8dd7ff7a093fea8017a0b74cac6fd.tar.gz
external_mesa3d-e63f2787b6a8dd7ff7a093fea8017a0b74cac6fd.tar.bz2
st/xa: Don't call fence_reference with an unitialized fence handle as dst
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/xa/xa_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c
index 1e7a20a..1d918de 100644
--- a/src/gallium/state_trackers/xa/xa_context.c
+++ b/src/gallium/state_trackers/xa/xa_context.c
@@ -344,7 +344,7 @@ xa_solid_done(struct xa_context *ctx)
struct xa_fence *
xa_fence_get(struct xa_context *ctx)
{
- struct xa_fence *fence = malloc(sizeof(*fence));
+ struct xa_fence *fence = calloc(1, sizeof(*fence));
struct pipe_screen *screen = ctx->xa->screen;
if (!fence)