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-05-21 12:45:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-21 12:45:10 +0400
commit13bde6645bd2373c444279aff270a03ea92eef36 (patch)
tree79b2dd4cee155ec25eb4ed8184a8edc530d2c52b /source/blender/blenlib/intern/BLI_args.c
parentcd6b27f2b58aff46c9431bf7621e19bdb1b0b4c2 (diff)
code cleanup: remove callbacks only added to wrap MEM_freeN
Diffstat (limited to 'source/blender/blenlib/intern/BLI_args.c')
-rw-r--r--source/blender/blenlib/intern/BLI_args.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c
index 6a5952465fe..fdef0d69539 100644
--- a/source/blender/blenlib/intern/BLI_args.c
+++ b/source/blender/blenlib/intern/BLI_args.c
@@ -129,14 +129,9 @@ bArgs *BLI_argsInit(int argc, const char **argv)
return ba;
}
-static void freeItem(void *val)
-{
- MEM_freeN(val);
-}
-
void BLI_argsFree(struct bArgs *ba)
{
- BLI_ghash_free(ba->items, freeItem, freeItem);
+ BLI_ghash_free(ba->items, MEM_freeN, MEM_freeN);
MEM_freeN(ba->passes);
BLI_freelistN(&ba->docs);
MEM_freeN(ba);