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:
Diffstat (limited to 'source/blender/freestyle/intern/geometry/FastGrid.cpp')
-rw-r--r--source/blender/freestyle/intern/geometry/FastGrid.cpp6
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;