OpenToonz - An open-source full-featured 2D animation creation software
C
fix magnet tool crash (#324)
shun-iwasawa5ddd75cc52d2
diff --git a/toonz/sources/common/tvrender/tstrokedeformations.cpp b/toonz/sources/common/tvrender/tstrokedeformations.cppindex 8cee607d7..0a36b5abb 100644--- a/toonz/sources/common/tvrender/tstrokedeformations.cpp+++ b/toonz/sources/common/tvrender/tstrokedeformations.cpp@@ -200,7 +200,6 @@ TStrokePointDeformation::TStrokePointDeformation(const TPointD &vect,double radius): m_imp(new Imp(vect, center, radius)){- delete m_imp;}//-----------------------------------------------------------------------------diff --git a/toonz/sources/include/tstrokedeformations.h b/toonz/sources/include/tstrokedeformations.hindex b074f1373..ed1401b80 100644--- a/toonz/sources/include/tstrokedeformations.h+++ b/toonz/sources/include/tstrokedeformations.h@@ -5,6 +5,7 @@// #include "tstrokeutil.h"#include "tgeometry.h"+#include <memory>#undef DVAPI#undef DVVAR@@ -80,7 +81,7 @@ class DVAPI TStrokePointDeformation : public TStrokeDeformation{protected:struct Imp;- Imp *m_imp;+ std::unique_ptr<Imp> m_imp;public:/*!