Skip to content

Commit

Permalink
Add missing lock in ScriptUtils::Union
Browse files Browse the repository at this point in the history
fixes #9622
  • Loading branch information
gunnarbeutner committed Jul 15, 2015
1 parent 1638c44 commit 46a9b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/base/scriptutils.cpp
Expand Up @@ -110,6 +110,7 @@ Array::Ptr ScriptUtils::Union(const std::vector<Value>& arguments)
Array::Ptr arr = varr;

if (arr) {
ObjectLock olock(arr);
BOOST_FOREACH(const Value& value, arr) {
values.insert(value);
}
Expand Down

0 comments on commit 46a9b30

Please sign in to comment.