From: Jürgen Vigna Date: Mon, 22 May 2000 08:29:14 +0000 (+0000) Subject: Hopefully fixed another free-memory bug. X-Git-Tag: 1.6.10~22224 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d4cd63f3423e4556bba2c42dd31b44d78004d7d5;p=lyx.git Hopefully fixed another free-memory bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@760 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index 36be3e2e2d..a53bae8b20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-22 Juergen Vigna + + * src/paragraph.C (PasteParagraph): Possibly a memory leak as + next was deleted but not set to 0. + 2000-05-21 Lars Gullik Bjønnes * src/language.C (initL): change the initialization of languages diff --git a/src/paragraph.C b/src/paragraph.C index 1fcb14900b..01ea6b6331 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -1623,7 +1623,9 @@ void LyXParagraph::PasteParagraph() } // delete the next paragraph + LyXParagraph *prev = the_next->previous; delete the_next; + prev->next = 0; }