Skip to content

Commit 1200e9b

Browse files
committed
oops
1 parent 0925a9c commit 1200e9b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.0.9
2+
- Fix a crash
3+
14
# 2.0.8
25
- Rewrite hover logic (layering properly works now)
36
- Add support for more sprite formats (GIF, JPEG XL, WebP, QOI) thanks to Prevter's ImagePlus.

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"mac": "2.2074",
77
"ios": "2.2074"
88
},
9-
"version": "v2.0.8",
9+
"version": "v2.0.9",
1010
"id": "alphalaneous.happy_textures",
1111
"name": "Happy Textures :3",
1212
"developer": "Alphalaneous",

src/NodeModding.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ class $modify(CCObject) {
3737

3838
if (MyCCNode* node = static_cast<MyCCNode*>(typeinfo_cast<CCNode*>(this))) {
3939
if (!node->isModified()) {
40+
node->retain();
4041
LateQueue::get()->queue(node, [modding, node] {
4142
std::string className = AlphaUtils::Cocos::getClassName(node, true);
4243
modding->doUICheckForType(className, node);
4344
node->setModified();
45+
node->release();
4446
});
4547
}
4648
}

0 commit comments

Comments
 (0)