renderer: destroy cond/mutex

For completeness (there is no dynamic allocation on Linux).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent bc358da307
commit 51bf76036e
  1. 5
      src/vrend_renderer.c

@ -3514,6 +3514,9 @@ static void vrend_free_sync_thread(void)
pipe_condvar_signal(vrend_state.fence_cond); pipe_condvar_signal(vrend_state.fence_cond);
pipe_thread_wait(vrend_state.sync_thread); pipe_thread_wait(vrend_state.sync_thread);
vrend_state.sync_thread = 0; vrend_state.sync_thread = 0;
pipe_condvar_destroy(vrend_state.fence_cond);
pipe_mutex_destroy(vrend_state.fence_mutex);
} }
static ssize_t static ssize_t
@ -3633,6 +3636,8 @@ static void vrend_renderer_use_threaded_sync(void)
close(vrend_state.eventfd); close(vrend_state.eventfd);
vrend_state.eventfd = -1; vrend_state.eventfd = -1;
vrend_clicbs->destroy_gl_context(vrend_state.sync_context); vrend_clicbs->destroy_gl_context(vrend_state.sync_context);
pipe_condvar_destroy(vrend_state.fence_cond);
pipe_mutex_destroy(vrend_state.fence_mutex);
} }
} }
#else #else

Loading…
Cancel
Save