summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-12-08 17:08:00 +0300
committerinfirit <[email protected]>2014-12-08 21:46:03 +0100
commite0d962e2e680e78fc910cb63c4b8efd287e9c09f (patch)
tree8160485349e5faab880968c6fcd88844880bdfbd
parentc03e5c07e3f7dd1cec9c1b860565322953d878f4 (diff)
downloadatril-e0d962e2e680e78fc910cb63c4b8efd287e9c09f.tar.bz2
atril-e0d962e2e680e78fc910cb63c4b8efd287e9c09f.tar.xz
ev-jobs: don't forget to unlock the trylock'ed mutex
-rw-r--r--libview/ev-jobs.c4
1 files changed, 3 insertions, 1 deletions
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 */