From c06a45c6e4b7c3724f003561c5f9fc2e024aa549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 24 Jul 2001 05:53:32 +0000 Subject: [PATCH] fix memory leak git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2313 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/formulabase.C | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index bc16d02cab..4bf8501ec1 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -6,6 +6,8 @@ * math_cursor.C: do not move into insets that don't have inner cells yet + * formulabase.C: fix memory leak + 2001-07-22 Jean-Marc Lasgouttes * formula.C (insetAllowed): allow insertion of label diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 44a40e4335..946541d850 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -135,10 +135,7 @@ InsetFormulaBase::InsetFormulaBase(InsetFormulaBase const & f) InsetFormulaBase::~InsetFormulaBase() { -#ifdef WITH_WARNINGS -#warning leak this for a while... -#endif - //delete par_; + delete par_; }