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. 2
      src/vrend_renderer.c

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

Loading…
Cancel
Save