]> git.lyx.org Git - features.git/commitdiff
Fix bug #6685: Assertion when quitting LyX with a Reference List in the Advanced...
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Jun 2010 22:12:22 +0000 (22:12 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Jun 2010 22:12:22 +0000 (22:12 +0000)
During the deletion of pimpl_, one don't want the assert LASSERT(singleton_) to fire in one of the the***() functions. In this case it is theBufferList(), which is needed by the dtor of BibItem?.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34623 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyX.cpp

index 49ee0b081b65c2980e599aabfb66b36b0a12025d..e1bb5a92f7b58043dd9ca61bf19ce0184a88f0c4 100644 (file)
@@ -206,8 +206,8 @@ frontend::Application * theApp()
 
 LyX::~LyX()
 {
-       singleton_ = 0;
        delete pimpl_;
+       singleton_ = 0;
 }