Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Plug memory leak in common

Michał Janiszewski28790b32b9c9
diff --git a/toonz/sources/common/tvrender/tstrokedeformations.cpp b/toonz/sources/common/tvrender/tstrokedeformations.cpp
index 0a36b5abb..8cee607d7 100644
--- a/toonz/sources/common/tvrender/tstrokedeformations.cpp
+++ b/toonz/sources/common/tvrender/tstrokedeformations.cpp
@@ -200,6 +200,7 @@ TStrokePointDeformation::TStrokePointDeformation(const TPointD &vect,
double radius)
: m_imp(new Imp(vect, center, radius))
{
+ delete m_imp;
}
//-----------------------------------------------------------------------------