diff options
author | Matteo Bernardini | 2019-05-25 09:40:42 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-05-25 09:40:42 +0200 |
commit | f5064f94d709c48d2e40eb1a35963fe20826bc37 (patch) | |
tree | e45a14cb3efa534c5e56616c92e108db48642a3b /development/Coin/memhandler-initialization.patch | |
parent | 17e9de17ea8d07084fc91db30fc6dd29f0e04b3a (diff) | |
download | slackbuilds-9c0c53b886eeb53e18058c86b8d3dbbf599e1b90.tar.gz |
20190525.1 global branch merge.current-20190525.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/Coin/memhandler-initialization.patch')
-rw-r--r-- | development/Coin/memhandler-initialization.patch | 20 |
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; + |