try to fix error shown by valgrind

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4780 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-25 07:55:56 +00:00
parent 07e56bf085
commit 01f9ad1e3b

View File

@ -117,8 +117,8 @@ void InsetFormulaMacro::read(Buffer const *, LyXLex & lex)
void InsetFormulaMacro::read(std::istream & is)
{
MathMacroTemplate * p = new MathMacroTemplate(is);
MathMacroTable::create(MathAtom(p));
setInsetName(p->name());
MathMacroTable::create(MathAtom(p));
metrics();
}