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:
authorCampbell Barton <ideasman42@gmail.com>2013-08-25 18:58:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-25 18:58:26 +0400
commit28243b2e5fd272d12c4349c7998b39893c20628c (patch)
treef95a059a666491e27745b5e101195333663cfc08 /source/blender/blenlib/BLI_mempool.h
parente4d278668fcea1a42e2b8bfd1f5a85be192d3b49 (diff)
fix leak in BLI_ghash_clear(). was never freeing entries, add BLI_mempool_clear utility function.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r--source/blender/blenlib/BLI_mempool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h
index 1c470d59062..0e6fb169a90 100644
--- a/source/blender/blenlib/BLI_mempool.h
+++ b/source/blender/blenlib/BLI_mempool.h
@@ -73,6 +73,11 @@ void BLI_mempool_free(BLI_mempool *pool, void *addr)
__attribute__((nonnull(1, 2)))
#endif
;
+void BLI_mempool_clear(BLI_mempool *pool)
+#ifdef __GNUC__
+__attribute__((nonnull(1)))
+#endif
+;
void BLI_mempool_destroy(BLI_mempool *pool)
#ifdef __GNUC__
__attribute__((nonnull(1)))