]> git.lyx.org Git - features.git/commitdiff
fix crash on exit (when using http://dmoulding.googlepages.com/vld)
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 1 Dec 2007 12:17:00 +0000 (12:17 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sat, 1 Dec 2007 12:17:00 +0000 (12:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21899 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index c888112970b88b49ca0d6556a967b189c30134d3..2fbef702a4bf229adeb8b2e0d53a11aba60a9d32 100644 (file)
@@ -264,6 +264,9 @@ Buffer::~Buffer()
        // here the buffer should take care that it is
        // saved properly, before it goes into the void.
 
+       // GuiView already destroyed
+       gui_ = 0;
+
        Buffer const * master = masterBuffer();
        if (master != this && use_gui)
                // We are closing buf which was a child document so we