summaryrefslogtreecommitdiffstats
path: root/development/Coin/memhandler-initialization.patch
diff options
context:
space:
mode:
author Matteo Bernardini2018-07-14 08:59:53 +0200
committer Matteo Bernardini2018-07-14 08:59:53 +0200
commit2194bf7de6fa57724c0f8757fa60de9c573ce71e (patch)
tree2674f18e6d9d562d590839970e47269f5c16c877 /development/Coin/memhandler-initialization.patch
parentd1e56f2b54fe666905a90fd592495606a4ae9abe (diff)
downloadslackbuilds-fdc4ee57da040898d5b929ad13828ccef06775a6.tar.gz
20180714.1 global branch merge.current-20180714.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/Coin/memhandler-initialization.patch')
-rw-r--r--development/Coin/memhandler-initialization.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/development/Coin/memhandler-initialization.patch b/development/Coin/memhandler-initialization.patch
new file mode 100644
index 0000000000..4c346487ed
--- /dev/null
+++ b/development/Coin/memhandler-initialization.patch
@@ -0,0 +1,20 @@
+--- Coin-3.1.3/src/misc/SbHash.h.init 2010-03-02 22:20:09.000000000 +0900
++++ Coin-3.1.3/src/misc/SbHash.h 2016-04-22 16:52:39.888883757 +0900
+@@ -89,6 +89,8 @@
+ cc_memalloc_deallocate(entry->memhandler, ptr);
+ }
+ SbHashEntry(const Key & key, const Type & obj) : key(key), obj(obj) {}
++ SbHashEntry(const Key & key, const Type & obj, cc_memalloc *memhandler)
++ : key(key), obj(obj), memhandler(memhandler) {}
+
+ Key key;
+ Type obj;
+@@ -218,7 +220,7 @@
+ /* Key not already in the hash table; insert a new
+ * entry as the first element in the bucket
+ */
+- entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj);
++ entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj, this->memhandler);
+ entry->next = this->buckets[i];
+ this->buckets[i] = entry;
+