From e0d962e2e680e78fc910cb63c4b8efd287e9c09f Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 8 Dec 2014 17:08:00 +0300 Subject: ev-jobs: don't forget to unlock the trylock'ed mutex --- libview/ev-jobs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libview') diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index 281ad782..d0388031 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -983,8 +983,10 @@ ev_job_fonts_run (EvJob *job) if (!ev_document_doc_mutex_trylock ()) return TRUE; - if (!ev_document_fc_mutex_trylock ()) + if (!ev_document_fc_mutex_trylock ()) { + ev_document_doc_mutex_unlock (); return TRUE; + } #ifdef EV_ENABLE_DEBUG /* We use the #ifdef in this case because of the if */ -- cgit v1.2.1