vrend: check eventfd value before close

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent 66708981de
commit 221006de6c
  1. 6
      src/vrend_renderer.c

@ -3731,8 +3731,10 @@ vrend_renderer_fini(void)
return;
vrend_free_sync_thread();
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
if (vrend_state.eventfd == -1) {
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
}
vrend_decode_reset(false);
vrend_object_fini_resource_table();

Loading…
Cancel
Save