diff --git a/Lib/python/director.swg b/Lib/python/director.swg index cb14d3afc..176ee3336 100644 --- a/Lib/python/director.swg +++ b/Lib/python/director.swg @@ -354,7 +354,7 @@ namespace Swig { ~Guard() { - PyThread_free_lock(mutex_); + PyThread_release_lock(mutex_); } }; # define SWIG_GUARD(mutex) Guard _guard(mutex)