typedef struct _osrfWebsocketTranslator {
const WebSocketServer *server;
apr_pool_t *main_pool; // standalone per-process pool
- apr_pool_t *session_pool; // child of trans->main_pool; per-session
+ apr_pool_t *session_pool; // child of r->pool; per-session
apr_hash_t *session_cache;
apr_thread_t *responder_thread;
apr_thread_mutex_t *mutex;
void CALLBACK on_destroy_handler(WebSocketPlugin *plugin) {
if (trans) {
apr_thread_exit(trans->responder_thread, APR_SUCCESS);
+ apr_thread_mutex_destroy(trans->mutex);
apr_pool_destroy(trans->main_pool);
}