]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetfoot.C
index e53a1db8769033fc5c4a03e1ef0898fdbf0b4c56..5b5e07a2aa7be20d350acb0b18c4ac9b7a019eac 100644 (file)
@@ -28,6 +28,7 @@
 
 
 using std::ostream;
+using std::auto_ptr;
 
 
 InsetFoot::InsetFoot(BufferParams const & bp)
@@ -46,9 +47,9 @@ InsetFoot::InsetFoot(InsetFoot const & in)
 }
 
 
-Inset * InsetFoot::clone() const
+auto_ptr<InsetBase> InsetFoot::clone() const
 {
-       return new InsetFoot(*this);
+       return auto_ptr<InsetBase>(new InsetFoot(*this));
 }