summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vivante.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vivante.c b/src/vivante.c
index f68e2c8..8823896 100644
--- a/src/vivante.c
+++ b/src/vivante.c
@@ -125,6 +125,7 @@ void vivante_set_pixmap_bo(PixmapPtr pixmap, struct drm_armada_bo *bo)
if (!vivante_map_bo_to_gpu(vivante, bo, &vPix->info,
&vPix->handle)) {
free(vPix);
+ vPix = NULL;
goto fail;
}
}