From: Carlos Garcia Campos Date: Mon, 25 Dec 2006 13:02:12 +0000 (+0000) Subject: Run find_link_dest with document lock held, since it's called by links X-Git-Tag: EVINCE_0_7_1~40 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=6151c78c72943607834efc25400f9266712bbbd3;p=evince.git Run find_link_dest with document lock held, since it's called by links 2006-12-25 Carlos Garcia Campos * backend/ev-document-links.c: (ev_document_links_find_link_dest): Run find_link_dest with document lock held, since it's called by links thread and main thread at the same time. --- diff --git a/ChangeLog b/ChangeLog index 6d49c40e..20cbe9eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-25 Carlos Garcia Campos + + * backend/ev-document-links.c: (ev_document_links_find_link_dest): + + Run find_link_dest with document lock held, since it's called by links + thread and main thread at the same time. + 2006-12-25 Carlos Garcia Campos * shell/ev-view.c: (goto_dest): diff --git a/backend/ev-document-links.c b/backend/ev-document-links.c index d0770036..c7170963 100644 --- a/backend/ev-document-links.c +++ b/backend/ev-document-links.c @@ -86,7 +86,9 @@ ev_document_links_find_link_dest (EvDocumentLinks *document_links, EvDocumentLinksIface *iface = EV_DOCUMENT_LINKS_GET_IFACE (document_links); EvLinkDest *retval; + ev_document_doc_mutex_lock (); retval = iface->find_link_dest (document_links, link_name); + ev_document_doc_mutex_unlock (); return retval; }