diff options
author | Martin Wimpress <[email protected]> | 2015-06-09 22:51:45 +0100 |
---|---|---|
committer | Martin Wimpress <[email protected]> | 2015-06-09 22:51:45 +0100 |
commit | 70f1f50118e2a491d171e205bf15bf460d693f5f (patch) | |
tree | 63a5acc19b0b0d5012679dadb2ea4aef5ba78203 | |
parent | 28cd11d64d5810ed779ce132d154db04a1d8c930 (diff) | |
parent | e97dcef7bb3fa143181a68b36eaa3fb02c814d32 (diff) | |
download | atril-70f1f50118e2a491d171e205bf15bf460d693f5f.tar.bz2 atril-70f1f50118e2a491d171e205bf15bf460d693f5f.tar.xz |
Merge pull request #129 from monsta/patch-11.8
[1.8] ev-jobs: don't forget to unlock the trylock'ed mutex
-rw-r--r-- | libview/ev-jobs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index d8d3043d..99cfc8c0 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -834,9 +834,11 @@ ev_job_fonts_run (EvJob *job) /* Do not block the main loop */ 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 */ |