]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
Hopefully fixed another free-memory bug.
[lyx.git] / src / paragraph.C
index 1fcb14900b94186fd74f9067027addde282f606b..01ea6b6331c54c94b561606724c9d208548011d8 100644 (file)
@@ -1623,7 +1623,9 @@ void LyXParagraph::PasteParagraph()
        }
    
        // delete the next paragraph
+       LyXParagraph *prev = the_next->previous;
        delete the_next;
+       prev->next = 0;
 }