sna: Allow allocation to fail even when debugging

Let the malloc failure propagate rather than assert.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-02-21 21:48:36 +00:00
parent cb87b17953
commit 2c0aacb869
1 changed files with 0 additions and 1 deletions

View 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);