From: Jean-Marc Lasgouttes Date: Fri, 27 Jan 2017 15:36:06 +0000 (+0100) Subject: Make sanitize more robust to dangling pointers. X-Git-Tag: 2.3.0alpha1~416 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=344f7f2e7dbfda5b24df2fa6b18846c3aa25cb40;p=features.git Make sanitize more robust to dangling pointers. It is necessary to sanitize the new_word iterator too. --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 822dc6e53c..14d4a6ae48 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2245,6 +2245,7 @@ void Cursor::sanitize() { setBuffer(&bv_->buffer()); DocIterator::sanitize(); + new_word_.sanitize(); if (selection()) anchor_.sanitize(); else