Skip to content

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

C

Use 'delete' on a 'new' object in motionblurfx.cpp.

John Davidson9980bf84e043
diff --git a/toonz/sources/stdfx/motionblurfx.cpp b/toonz/sources/stdfx/motionblurfx.cpp
index 5bebef2bd..f3d72f7e4 100644
--- a/toonz/sources/stdfx/motionblurfx.cpp
+++ b/toonz/sources/stdfx/motionblurfx.cpp
@@ -285,7 +285,7 @@ void doDirectionalBlur(TRasterPT<T> r, double blur, bool bidirectional)
do_filtering<T>(row + brad, buffer, lx, coeff, brad, blur, globmatte);
}
- free(row);
+ delete row;
r->unlock();
}