Fix crash when a user removes a formula when its preview is being generated. (Another signal/destructor/gcc3 bug)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-08-20 21:30:33 +00:00
parent f289399bf5
commit f982b5e051
2 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,13 @@ RenderPreview::RenderPreview(RenderPreview const & other,
{} {}
RenderPreview::~RenderPreview()
{
if (ploader_connection_.connected())
ploader_connection_.disconnect();
}
auto_ptr<RenderBase> RenderPreview::clone(Inset const * inset) const auto_ptr<RenderBase> RenderPreview::clone(Inset const * inset) const
{ {
return auto_ptr<RenderBase>(new RenderPreview(*this, inset)); return auto_ptr<RenderBase>(new RenderPreview(*this, inset));

View File

@ -49,6 +49,7 @@ public:
RenderPreview(Inset const *); RenderPreview(Inset const *);
RenderPreview(RenderPreview const &, Inset const *); RenderPreview(RenderPreview const &, Inset const *);
~RenderPreview();
std::auto_ptr<RenderBase> clone(Inset const *) const; std::auto_ptr<RenderBase> clone(Inset const *) const;
/// Compute the size of the object, returned in dim /// Compute the size of the object, returned in dim