diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-05-02 07:11:39 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-05-02 07:11:39 +0400 |
commit | b1db37dd056d1b2a16e82f1374163de566c2fe10 (patch) | |
tree | c9fd3d670b69c5b3df4b336c8298a42dcbfbe56c /source/blender/freestyle/intern/view_map | |
parent | b9d41212838be2b8a6f12a9ab209b8700723a711 (diff) |
Fix for a memory leak in silhouette edge detection.
Diffstat (limited to 'source/blender/freestyle/intern/view_map')
-rwxr-xr-x | source/blender/freestyle/intern/view_map/Silhouette.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/view_map/Silhouette.h b/source/blender/freestyle/intern/view_map/Silhouette.h index da337c1d0b3..e7533f659d6 100755 --- a/source/blender/freestyle/intern/view_map/Silhouette.h +++ b/source/blender/freestyle/intern/view_map/Silhouette.h @@ -252,6 +252,8 @@ public: } void setCurvatureInfo(CurvatureInfo* ci) { + if (_curvature_info) // Q. is this an error condition? (T.K. 02-May-2011) + delete _curvature_info; _curvature_info = ci; } |