diff options
| author | monsta <[email protected]> | 2015-03-05 17:21:31 +0300 |
|---|---|---|
| committer | monsta <[email protected]> | 2015-03-05 17:21:31 +0300 |
| commit | e97dcef7bb3fa143181a68b36eaa3fb02c814d32 (patch) | |
| tree | 8d6d42ca7d179256b5b44afb9f4ccfeae2155cae | |
| parent | 175296fe8246a472439d529543c5c31802cad4b2 (diff) | |
| download | atril-e97dcef7bb3fa143181a68b36eaa3fb02c814d32.tar.bz2 atril-e97dcef7bb3fa143181a68b36eaa3fb02c814d32.tar.xz | |
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 */ |
