diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-05-15 05:30:03 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-05-15 05:30:03 +0400 |
commit | 5e4139c50a4048fefb6835451506147519d00565 (patch) | |
tree | 799a1ebc546708e2f1ea0a8e44bfd2cd28c4efd5 /source/blender/freestyle/intern/system/PseudoNoise.h | |
parent | bb7b04bd94ee167e9561fe8b8914e3f126dd8abf (diff) |
More fix for memory leaks in the Freestyle module.
Diffstat (limited to 'source/blender/freestyle/intern/system/PseudoNoise.h')
-rw-r--r-- | source/blender/freestyle/intern/system/PseudoNoise.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/system/PseudoNoise.h b/source/blender/freestyle/intern/system/PseudoNoise.h index 302b305325f..ce725723b59 100644 --- a/source/blender/freestyle/intern/system/PseudoNoise.h +++ b/source/blender/freestyle/intern/system/PseudoNoise.h @@ -53,7 +53,8 @@ public: static void init(long seed); protected: - static real *_values; + static const unsigned NB_VALUE_NOISE = 512; + static real _values[NB_VALUE_NOISE]; #ifdef WITH_CXX_GUARDEDALLOC public: |