From e63f2787b6a8dd7ff7a093fea8017a0b74cac6fd Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Thu, 1 Sep 2011 11:19:02 +0200 Subject: st/xa: Don't call fence_reference with an unitialized fence handle as dst Signed-off-by: Thomas Hellstrom --- src/gallium/state_trackers/xa/xa_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c index 1e7a20ad485..1d918de974f 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) -- cgit v1.2.3