Skip to content

Commit e5be4fa

Browse files
committed
xml node dtor
1 parent ea041d1 commit e5be4fa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

bindings/2.2081/Cocos2d.bro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5941,5 +5941,6 @@ class pugi::xml_document : pugi::xml_node {
59415941
[[link(android)]]
59425942
class pugi::xml_node {
59435943
xml_node() = win 0x724f0, m1 0x55ccd4, imac 0x63b3c0, ios 0x3ab440;
5944+
~xml_node() = inline;
59445945
}
59455946

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <Geode/Bindings.hpp>
2+
3+
pugi::xml_node::~xml_node() {
4+
// because xml_document uses bindings addresses it uses the destructor lock, and since xml_node
5+
// is the subclass we need to remove the lock from the stack in order to not overlow it
6+
if (geode::DestructorLock::isLocked(this)) {
7+
geode::DestructorLock::removeLock(this);
8+
}
9+
}
10+
#if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_IOS)
11+
#endif
12+
13+
#if defined(GEODE_IS_WINDOWS)
14+
#endif
15+
16+
#if defined(GEODE_IS_IOS)
17+
#endif
18+

0 commit comments

Comments
 (0)