See T2835 (my crash was different from the one reported).
The buffer may be initialized after the first render_pre, due to
whatever timing issue. Check in elm_test "Window Socket" and then
open several "Window Plug".
@fix
Change-Id: Id8740001e8c489f1a3b98d81d39427615f610df0
void *
_extnbuf_lock(Extnbuf *b, int *w, int *h, int *stride)
{
+ if (!b) return NULL;
if (!b->have_lock)
{
if (b->lockfd >= 0)
void
_extnbuf_unlock(Extnbuf *b)
{
- if (!b->have_lock) return;
+ if (!b || !b->have_lock) return;
if (b->lockfd >= 0)
{
if (lockf(b->lockfd, F_ULOCK, 0) < 0)