]> git.lyx.org Git - lyx.git/commit
Avoid using pointer after it has been invalidated
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 3 Nov 2015 14:20:09 +0000 (15:20 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Nov 2015 09:01:04 +0000 (10:01 +0100)
commit576159156ed99b5fa24a014da78f75a64b3ad0f4
treefb2650650545e3c736081153ce445f8dc74a5645
parenteb1e85b096cf3f9f546ad2e8cfe10bfc872ab6e4
Avoid using pointer after it has been invalidated

The pointer macroInset points to a vector element. When another element is inserted in this vector, some reallocation occur and the pointer points to a deleted element.

This does not crash LyX by default, but it is bad enough to make valgrind cry.

See ticket #9804.
src/mathed/MathData.cpp