$OpenBSD: patch-pjmedia_src_pjmedia_stream_c,v 1.1 2012/06/05 23:15:23 fgsch Exp $ --- pjmedia/src/pjmedia/stream.c.orig Sat May 12 08:18:09 2012 +++ pjmedia/src/pjmedia/stream.c Sun Jun 3 04:09:23 2012 @@ -2442,6 +2442,7 @@ PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_st /* Free mutex */ if (stream->jb_mutex) { + pj_mutex_unlock(stream->jb_mutex); pj_mutex_destroy(stream->jb_mutex); stream->jb_mutex = NULL; }