Skip to content

Commit d4eabb3

Browse files
Moved cleanup away from closeApp function, into close function.
1 parent 242a5b8 commit d4eabb3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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)