]> git.lyx.org Git - features.git/commit
Fix memory error detected by valgrind
authorGeorg Baum <baum@lyx.org>
Wed, 19 Nov 2014 19:42:04 +0000 (20:42 +0100)
committerGeorg Baum <baum@lyx.org>
Wed, 19 Nov 2014 19:42:04 +0000 (20:42 +0100)
commite32147a1fefaaa7b0afe779d9f4fddb558e23d60
tree78cdd8edba17df387a05fe12880c982b7589cd39
parent3cc5283940f44ddc9adb219fda1ac821f254c066
Fix memory error detected by valgrind

The assignment name = sub.str(1) reads from the first argument given to
regex_match(), but previously this was a temporary object which was already
out of scope. This did probably not matter much in practice, but invoked
undefined behaviour, and as we all know this is allowed ton format your hard
disk or kill to your cat, so better fix this.
src/LaTeX.cpp
status.21x