Bennett Helm wrote:
1.5.0 alpha crashes every time on quit on Intel Mac. Here's the backtrace:

Could you try out this patch please?

Thanks in advance,
Abdel.

Index: lyx_main.C
===================================================================
--- lyx_main.C  (revision 15953)
+++ lyx_main.C  (working copy)
@@ -159,7 +159,13 @@
 
 boost::scoped_ptr<LyX> LyX::singleton_;
 
+LyX::~LyX()
+{
+       if (!quitting)
+               quit();
+}
 
+
 int LyX::exec(int & argc, char * argv[])
 {
        BOOST_ASSERT(!singleton_.get());
Index: lyx_main.h
===================================================================
--- lyx_main.h  (revision 15953)
+++ lyx_main.h  (working copy)
@@ -40,6 +40,9 @@
 /// initial startup
 class LyX : boost::noncopyable {
 public:
+
+       ~LyX();
+
        /**
         * Execute LyX. The startup sequence is as follows:
         * -# LyX::exec()

Reply via email to