Skip to content

Commit 733603c

Browse files
Merge pull request #260 from rdkcentral/fix/close-cleanup
Fix/close cleanup
2 parents 242a5b8 + 404085b commit 733603c

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v4.6.1
4+
5+
*30 aug 2021*
6+
7+
- Fixed cleanup after closing an App
38
## v4.6.0
49

510
*16 aug 2021*

docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v4.6.1
4+
5+
*30 aug 2021*
6+
7+
- Fixed cleanup after closing an App
38
## v4.6.0
49

510
*16 aug 2021*

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "4.5.0",
3+
"version": "4.6.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "4.6.0",
3+
"version": "4.6.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

src/Application/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ export default function(App, appData, platformSettings) {
160160
}
161161

162162
closeApp() {
163-
Log.info('Closing App')
164-
165-
Settings.clearSubscribers()
166-
Registry.clear()
163+
Log.info('Signaling App Close')
167164

168165
if (platformSettings.onClose && typeof platformSettings.onClose === 'function') {
169166
platformSettings.onClose(...arguments)
@@ -174,6 +171,10 @@ export default function(App, appData, platformSettings) {
174171

175172
close() {
176173
Log.info('Closing App')
174+
175+
Settings.clearSubscribers()
176+
Registry.clear()
177+
177178
this.childList.remove(this.tag('App'))
178179
this.cleanupFonts()
179180
// force texture garbage collect

0 commit comments

Comments
 (0)