]> git.lyx.org Git - features.git/commitdiff
Fix crash on exit (angus)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Aug 2000 13:48:33 +0000 (13:48 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Aug 2000 13:48:33 +0000 (13:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@951 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/frontends/xforms/FormCitation.C
src/frontends/xforms/FormCommand.C
src/frontends/xforms/FormCommand.h
src/frontends/xforms/FormIndex.C
src/frontends/xforms/FormToc.C
src/frontends/xforms/FormUrl.C

index d165bb87ef6ca718078a213b260b7e260a067d5b..b2afe406521a7f93b00a394c5b787f78964ef56c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-08-03  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * src/frontends/xforms/FormCommand.[Ch] (d-tor): removed
+
+       * src/frontends/xforms/FormCitation.[Ch],
+       src/frontends/xforms/FormIndex.[Ch],
+       src/frontends/xforms/FormToc.[Ch],
+       src/frontends/xforms/FormUrl.[Ch] (d-tors): call free()
+
 2000-08-03  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * src/commandtags.h: renamed, created some flags for citation
@@ -20,9 +29,6 @@
        * src/frontends/xforms/forms/form_index.fd: xforms implementation
        of the Index dialog
        
-  2000-08-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
-  
-       * src/insets/insetref.C (Latex): rewrite so that there is now
 2000-08-01  Dekel Tsur  <dekel@math.tau.ac.il>
 
        * src/mathed/math_write.C (MathDecorationInset::Write) Put \protect 
index cee0946f1ee733df9179f03a56ecd8b8523790da..df45cd020cd8acaec9a841cf3fb0ef17bbd2f726 100644 (file)
@@ -52,6 +52,7 @@ FormCitation::FormCitation(LyXView * lv, Dialogs * d)
 
 FormCitation::~FormCitation()
 {
+       free();
        delete dialog_;
 }
 
index 44237d86d6e1aa97e8de84a66aedb0690150d58d..a9d975fa6662d18da3c800510ea9d5376033769b 100644 (file)
@@ -34,12 +34,6 @@ FormCommand::FormCommand(LyXView * lv, Dialogs * d, string const & t)
 {}
 
 
-FormCommand::~FormCommand()
-{
-       free();
-}
-
-
 void FormCommand::showInset( InsetCommand * const inset )
 {
        if( dialogIsOpen || inset == 0 ) return;
@@ -94,7 +88,7 @@ void FormCommand::free()
        // we don't need to delete u and h here because
        // hide() does that after disconnecting.
        if( form() ) {
-               if( form()->visible)
+               if( form()->visible )
                        hide();
                fl_free_form(form());
        }
index a0d89367bc524baa8be4478e0129bab6e5d2f70f..a5ea17fdb6ea5330bf87cb2fd2c54b9270445234 100644 (file)
@@ -31,8 +31,6 @@ class FormCommand : public DialogBase, public noncopyable {
 public:
        /// Constructor
        FormCommand(LyXView *, Dialogs *, string const & );
-       /// Destructor
-       virtual ~FormCommand();
 
        /**@name Real per-instance Callback Methods */
        //@{
@@ -60,6 +58,8 @@ protected:
        virtual void update() = 0;
        /// Apply from dialog (modify or create inset)
        virtual void apply() = 0;
+       /// Explicitly free the dialog.
+       void free();
        /// delete derived class variables from hide()
        virtual void clearStore() {}
        /// Pointer to the actual instantiation of the xform's form
@@ -87,8 +87,6 @@ private:
        void show();
        /// Hide the dialog.
        void hide();
-       /// Explicitly free the dialog.
-       void free();
 
 
        /**@name Private Data */
index 147886c84c0b659c936066a5d6fcaf9a81fafd33..528c3e7338c7b830a82569c19145b9e3577dd387 100644 (file)
@@ -39,6 +39,7 @@ FormIndex::FormIndex(LyXView * lv, Dialogs * d)
 
 FormIndex::~FormIndex()
 {
+       free();
        delete dialog_;
 }
 
index 4dba7b0fb0c6cae02952c7766182ff158925c37e..9a24d2b7ce5ca1198e037913a26291c0d8571b34 100644 (file)
@@ -42,6 +42,7 @@ FormToc::FormToc(LyXView * lv, Dialogs * d)
 
 FormToc::~FormToc()
 {
+       free();
        delete dialog_;
 }
 
index bf640fe656350093e8ebbc7a54f737b42eeeb715..d5a99291ff1721b5e839821af0b11a0bc8f5f843 100644 (file)
@@ -39,6 +39,7 @@ FormUrl::FormUrl(LyXView * lv, Dialogs * d)
 
 FormUrl::~FormUrl()
 {
+       free();
        delete dialog_;
 }