Fix buffer pointer crash. (Another.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23932 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-24 20:32:52 +00:00
parent 82a738b853
commit 0894f32bc6

View File

@ -251,6 +251,7 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
InsetExternalParams iep;
InsetExternalMailer::string2params(to_utf8(cmd.argument()), buf, iep);
auto_ptr<InsetExternal> inset(new InsetExternal);
inset->setBuffer(buf);
inset->setParams(iep);
return inset.release();
}