Richard Heck wrote:
http://bugzilla.lyx.org/show_bug.cgi?id=4034

To reproduce:
1. Open any file containing an InsetCommand-type inset, e.g. a label.
2. Select some material containing that inset.
3. Exit LyX.
Assertion triggered in T* boost::scoped_ptr<T>::operator->() const [with T = lyx::LyX::Singletons] by failing check "ptr != 0" in file ../boost/boost/scoped_ptr.hpp:94

The crash should be fixed now but, to be on the safe side, we should also cleanup the clipboard and selection stack.

Abdel.

PS: Jose, I didn't wait because this was obvious and the continuation of my work in 19094.

Author: younes
Date: Thu Jul 19 09:24:21 2007
New Revision: 19132

URL: http://www.lyx.org/trac/changeset/19132
Log:
Obvious crash-fix introduced by 19094.


Modified:
    lyx-devel/trunk/src/LyX.cpp

Modified: lyx-devel/trunk/src/LyX.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/LyX.cpp?rev=19132
==============================================================================
--- lyx-devel/trunk/src/LyX.cpp (original)
+++ lyx-devel/trunk/src/LyX.cpp Thu Jul 19 09:24:21 2007
@@ -383,6 +383,9 @@

 void LyX::hideDialogs(std::string const & name, Inset * inset) const
 {
+       if (quitting)
+               return;
+
        vector<int> const & view_ids = pimpl_->application_->gui().viewIds();
        vector<int>::const_iterator it = view_ids.begin();
        vector<int>::const_iterator const end = view_ids.end();




Reply via email to