st/gui: Make sure to unreference any frames pending for upload

This commit is contained in:
Jakob Bornecrantz 2021-08-20 17:35:32 +01:00
parent 36a8f949d5
commit 8225539178

View file

@ -61,6 +61,9 @@ break_apart(struct xrt_frame_node *node)
pthread_mutex_lock(&s->mutex);
s->running = false;
pthread_mutex_unlock(&s->mutex);
// Release any frame waiting for upload.
xrt_frame_reference(&s->frame, NULL);
}
static void