]> git.lyx.org Git - features.git/commit
Avoid using a dangling pointer
authorEnrico Forestieri <forenr@lyx.org>
Tue, 30 Jun 2015 16:54:19 +0000 (18:54 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 30 Jun 2015 16:54:19 +0000 (18:54 +0200)
commit305a712bbb1c201416e7bed2d8e6b7362c3aa5d5
tree32d4a4f50c3d219b5e7e8b18fbaab2076276f86a
parentdd61d8cf3ffcac57cd5f5e8716818f4bce87c30e
Avoid using a dangling pointer

This can happen when a macro is copied and then the document where
it is defined is closed. In this case, the macro survives in the
cut stack but the the buffer pointer is dangling.
src/mathed/MathMacro.cpp