diff --git a/lib/base/scriptutils.cpp b/lib/base/scriptutils.cpp index 942297a78..abfffce40 100644 --- a/lib/base/scriptutils.cpp +++ b/lib/base/scriptutils.cpp @@ -110,6 +110,7 @@ Array::Ptr ScriptUtils::Union(const std::vector& arguments) Array::Ptr arr = varr; if (arr) { + ObjectLock olock(arr); BOOST_FOREACH(const Value& value, arr) { values.insert(value); }