diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 18:58:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 18:58:26 +0400 |
commit | 28243b2e5fd272d12c4349c7998b39893c20628c (patch) | |
tree | f95a059a666491e27745b5e101195333663cfc08 /source/blender/blenlib/BLI_mempool.h | |
parent | e4d278668fcea1a42e2b8bfd1f5a85be192d3b49 (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.h | 5 |
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))) |