Skip to content

Commit 8486ff0

Browse files
committed
Fix event listener not being removed properly in Scene destructor
1 parent d40a6f7 commit 8486ff0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Core/Contents/Source/PolyScene.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void Scene::fixedUpdate() {
145145

146146
Scene::~Scene() {
147147
core->getInput()->removeAllHandlersForListener(this);
148+
core->removeAllHandlersForListener(this);
148149
CoreServices::getInstance()->getSceneManager()->removeScene(this);
149150
delete defaultCamera;
150151
}

IDE/Contents/Source/PolycodeMaterialEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PostEditorPane::PostEditorPane(ResourcePool *resourcePool) : UIElement() {
5353
baseProps->addProp(fp16Prop);
5454
fp16Prop->addEventListener(this, Event::CHANGE_EVENT);
5555

56-
baseProps->propHeight = 100;
56+
baseProps->propHeight = 300;
5757

5858
targetsProps = new RenderTargetsSheet();
5959
propList->addPropSheet(targetsProps);

0 commit comments

Comments
 (0)