diff options
author | monsta <[email protected]> | 2014-12-08 17:08:00 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-08 21:46:03 +0100 |
commit | e0d962e2e680e78fc910cb63c4b8efd287e9c09f (patch) | |
tree | 8160485349e5faab880968c6fcd88844880bdfbd | |
parent | c03e5c07e3f7dd1cec9c1b860565322953d878f4 (diff) | |
download | atril-e0d962e2e680e78fc910cb63c4b8efd287e9c09f.tar.bz2 atril-e0d962e2e680e78fc910cb63c4b8efd287e9c09f.tar.xz |
ev-jobs: don't forget to unlock the trylock'ed mutex
-rw-r--r-- | libview/ev-jobs.c | 4 |
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 */ |