[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kviewshell-0.7/kviewshell/plugins/dvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-11-06 19:42:12
Message-ID: 1162842132.489626.16269.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 602772 by whuss:
Readd a forgotten MutexLocker. This fixes a crash, when we try
to close a DVI file while the rendering thread is still working.
M +4 -2 dviRenderer.cpp
--- branches/work/kviewshell-0.7/kviewshell/plugins/dvi/dviRenderer.cpp #602771:602772
@@ -82,6 +82,8 @@
kdDebug(kvs::dvi) << "~dviRenderer" << endl;
#endif
+ clear();
+
QMutexLocker lock(&mutex);
delete PS_interface;
@@ -279,7 +281,7 @@
#warning TODO: remove link if anchor cannot be found
if ((*i).linkText[0] == '#') // is local link?
(*i).anchor = findAnchor((*i).linkText.mid(1));
-
+
// Also replace the targetnames created by the hyperref package,
// with proper translatable names.
QString temp = (*i).linkText;
@@ -553,7 +555,7 @@
kdDebug(kvs::dvi) << "dviRenderer::setFile( fname='" << fname << "', base='" << base << " )" << endl;
#endif
- //QMutexLocker lock(&mutex);
+ QMutexLocker lock(&mutex);
QFileInfo fi(fname);
QString filename = fi.absFilePath();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic