diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-01 00:50:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-01 00:50:55 +0400 |
commit | 22dae3e6005d4360212c53e799a50c528ecf3cee (patch) | |
tree | 0ed8e3b3415babcf3ffdb66d7b0519f5573900ba /source/blender/blenlib/intern/BLI_ghash.c | |
parent | 3840e0b2347200ceb414f12deb3436b20d274c66 (diff) |
fix for BLI_ghash_clear from Sv. Lockal (lockal)
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index 10b3c01d274..14dfbcffebe 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -179,7 +179,8 @@ void BLI_ghash_clear(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfree gh->nentries = 0; gh->nbuckets = hashsizes[gh->cursize]; - gh->buckets = MEM_recallocN(gh->buckets, gh->nbuckets * sizeof(*gh->buckets)); + MEM_freeN(gh->buckets); + gh->buckets = MEM_callocN(gh->nbuckets * sizeof(*gh->buckets), "buckets"); } /* same as above but return the value, |