From 52c945af744dc91be4710be8edca6df08f8da459 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Wed, 19 Oct 2005 15:07:36 +0000 Subject: [PATCH] Don't unlock QApplication's mutex as it leads to undefined behaviour (and crashes NetBSD). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10560 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/ChangeLog | 6 ++++++ src/frontends/qt2/lyx_gui.C | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index daf9c5ab85..80cce4cd5f 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,9 @@ +2005-10-19 Angus Leeming + + * lyx_gui.C (LApplication d-tor): remove code to unlock + QApplication mutex as we didn't lock the thing in the + first place; undefined behaviour. + 2005-10-16 Georg Baum * QLyXKeySym.C (initEncodings): prevent crash when no codec found diff --git a/src/frontends/qt2/lyx_gui.C b/src/frontends/qt2/lyx_gui.C index d72e5946b6..d1e1f851c9 100644 --- a/src/frontends/qt2/lyx_gui.C +++ b/src/frontends/qt2/lyx_gui.C @@ -135,12 +135,7 @@ LQApplication::LQApplication(int & argc, char ** argv) LQApplication::~LQApplication() -{ -#ifdef QT_THREAD_SUPPORT - if (locked()) - unlock(); -#endif -} +{} #ifdef Q_WS_MACX -- 2.39.2