Commit a63d392d authored by Thomas Guillem's avatar Thomas Guillem

jni/java_event_thread: fix SEGFAULT

parent 26bc1edd
......@@ -89,8 +89,8 @@ JavaEventThread_thread(void *data)
pthread_mutex_lock(&p_java_event_thread->lock);
free(event_elm);
TAILQ_REMOVE(&p_java_event_thread->queue, event_elm, next);
free(event_elm);
pthread_cond_signal(&p_java_event_thread->cond);
}
end:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment