diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-04-01 10:34:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-04-01 10:34:01 +0300 |
commit | f7dbce9914a86952b1a9ca2657a3c735cb693ef1 (patch) | |
tree | 5d4f6b6ecb7c40c0aaff4ed328f1aa5da5bf33c9 /source/blender/python/intern/bpy_app_translations.c | |
parent | 6461fbd9ce1f6cbaded1a53b689ea190b6f22f5e (diff) |
Real fix for T44127: Python does not guarantee to free all objects on exit...
All kudos to Campbell for the head-up and patch!
Diffstat (limited to 'source/blender/python/intern/bpy_app_translations.c')
-rw-r--r-- | source/blender/python/intern/bpy_app_translations.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c index 123b111f3cb..ae5ea88abdf 100644 --- a/source/blender/python/intern/bpy_app_translations.c +++ b/source/blender/python/intern/bpy_app_translations.c @@ -821,3 +821,12 @@ PyObject *BPY_app_translations_struct(void) return ret; } + +void BPY_app_translations_end(void) +{ + /* Incase the object remains in a module's namespace, see T44127. */ +#ifdef WITH_INTERNATIONAL + _clear_translations_cache(); +#endif +} + |