Skip to content

Commit d6d569d

Browse files
authored
Merge pull request #50 from hiimjasmine00/patch-1
Fix queueInMainThread + Add a few node IDs
2 parents f20a924 + 2ea3d99 commit d6d569d

File tree

6 files changed

+104
-11
lines changed

6 files changed

+104
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- "main"
7+
- "**"
88
jobs:
99
build:
1010
strategy:

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "4.2.0",
2+
"geode": "4.2.1",
33
"version": "v1.4.0-beta.6",
44
"gd": {
55
"win": "2.2074",

src/Styles/EventLevelInformation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ void EventLevelInformation::loadPage() {
7070
auto data = res->data();
7171
std::thread imageThread = std::thread([data,this](){
7272
m_image = new CCImage();
73-
m_image->autorelease();
7473
m_image->initWithImageData(const_cast<uint8_t*>(data.data()),data.size());
7574
geode::Loader::get()->queueInMainThread([this](){
7675
imageCreationFinished(m_image);
76+
m_image->release();
7777
});
7878
});
7979
imageThread.detach();

0 commit comments

Comments
 (0)