Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-05-02 07:11:39 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-05-02 07:11:39 +0400
commitb1db37dd056d1b2a16e82f1374163de566c2fe10 (patch)
treec9fd3d670b69c5b3df4b336c8298a42dcbfbe56c /source/blender/freestyle/intern/view_map
parentb9d41212838be2b8a6f12a9ab209b8700723a711 (diff)
Fix for a memory leak in silhouette edge detection.
Diffstat (limited to 'source/blender/freestyle/intern/view_map')
-rwxr-xr-xsource/blender/freestyle/intern/view_map/Silhouette.h2
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;
}