diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-21 11:37:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-21 11:37:59 +0400 |
commit | cd6b27f2b58aff46c9431bf7621e19bdb1b0b4c2 (patch) | |
tree | 0631ffabeea1a2b2b63276efe802e371f25080f7 /source/blender/windowmanager/intern/wm.c | |
parent | 10316768007df813ed2149c315c0db0415dda0e1 (diff) |
remove return value from MEM_freeN, it wasn't used anywhere and was cast to a different function signature. (which evidently works but error prone).
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 8163e9544aa..765f8fbfc31 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -221,7 +221,7 @@ int WM_uilisttype_add(uiListType *ult) void WM_uilisttype_freelink(uiListType *ult) { - BLI_ghash_remove(uilisttypes_hash, ult->idname, NULL, (GHashValFreeFP)MEM_freeN); + BLI_ghash_remove(uilisttypes_hash, ult->idname, NULL, MEM_freeN); } /* called on initialize WM_init() */ @@ -242,7 +242,7 @@ void WM_uilisttype_free(void) } BLI_ghashIterator_free(iter); - BLI_ghash_free(uilisttypes_hash, NULL, (GHashValFreeFP)MEM_freeN); + BLI_ghash_free(uilisttypes_hash, NULL, MEM_freeN); uilisttypes_hash = NULL; } @@ -274,7 +274,7 @@ int WM_menutype_add(MenuType *mt) void WM_menutype_freelink(MenuType *mt) { - BLI_ghash_remove(menutypes_hash, mt->idname, NULL, (GHashValFreeFP)MEM_freeN); + BLI_ghash_remove(menutypes_hash, mt->idname, NULL, MEM_freeN); } /* called on initialize WM_init() */ @@ -295,7 +295,7 @@ void WM_menutype_free(void) } BLI_ghashIterator_free(iter); - BLI_ghash_free(menutypes_hash, NULL, (GHashValFreeFP)MEM_freeN); + BLI_ghash_free(menutypes_hash, NULL, MEM_freeN); menutypes_hash = NULL; } |