diff options
Diffstat (limited to 'source/blender/freestyle/intern/geometry/FastGrid.cpp')
-rw-r--r-- | source/blender/freestyle/intern/geometry/FastGrid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/geometry/FastGrid.cpp b/source/blender/freestyle/intern/geometry/FastGrid.cpp index e0d36bece6e..1e5707690a0 100644 --- a/source/blender/freestyle/intern/geometry/FastGrid.cpp +++ b/source/blender/freestyle/intern/geometry/FastGrid.cpp @@ -30,12 +30,14 @@ namespace Freestyle { void FastGrid::clear() { - if (!_cells) + if (!_cells) { return; + } for (unsigned int i = 0; i < _cells_size; i++) { - if (_cells[i]) + if (_cells[i]) { delete _cells[i]; + } } delete[] _cells; _cells = NULL; |