st/xa: Don't call fence_reference with an unitialized fence handle as dst

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
Thomas Hellstrom
2011-09-01 11:19:02 +02:00
parent 5ec01ba7e8
commit e63f2787b6
+1 -1
View File
@@ -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)