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:
parent
cb87b17953
commit
2c0aacb869
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue