Don't free the front buffer if screencopy fails
It is possible for `screencopy_failed` to be called without the front buffer ever being set, such as when the output is dpms-off. Fixes #65pull/95/head
parent
5ae312c1b4
commit
a9b2d93568
|
@ -191,7 +191,8 @@ static void screencopy_failed(void* data,
|
|||
|
||||
screencopy__stop(self);
|
||||
|
||||
wv_buffer_pool_release(self->pool, self->front);
|
||||
if (self->front)
|
||||
wv_buffer_pool_release(self->pool, self->front);
|
||||
self->front = NULL;
|
||||
|
||||
self->status = SCREENCOPY_FAILED;
|
||||
|
|
Loading…
Reference in New Issue