sna: Allow allocation to fail even when debugging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:48:36 +0000 (21:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:48:36 +0000 (21:48 +0000)
Let the malloc failure propagate rather than assert.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index d79eb8a..6d97814 100644 (file)
@@ -516,7 +516,6 @@ sna_pixmap_alloc_cpu(struct sna *sna,
                priv->ptr = malloc(priv->stride * pixmap->drawable.height);
        }
 
-       assert(priv->ptr);
 done:
        assert(priv->stride);
        assert(!priv->mapped);