aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-01 02:10:02 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-01 02:10:02 +0300
commitad3dc937f11af894576032dcad4fb88042bdf253 (patch)
tree14a055d9b4cf26c9d5fe193e6b676ccfc00ca772 /mesonbuild/mesonlib.py
parentecde592b86e9c25fc82a612085761c4825017841 (diff)
downloadmeson-ad3dc937f11af894576032dcad4fb88042bdf253.zip
meson-ad3dc937f11af894576032dcad4fb88042bdf253.tar.gz
meson-ad3dc937f11af894576032dcad4fb88042bdf253.tar.bz2
Fix remaining Interpreter object leaks.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index bf6ba98..4760e04 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -709,6 +709,14 @@ def windows_proof_rmtree(f):
# Try one last time and throw if it fails.
shutil.rmtree(f)
+def unholder_array(entries):
+ result = []
+ for e in entries:
+ if hasattr(e, 'held_object'):
+ e = e.held_object
+ result.append(e)
+ return result
+
class OrderedSet(collections.MutableSet):
"""A set that preserves the order in which items are added, by first
insertion.