1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 03:48:21 +01:00

Add cleanup code when quitting

This commit is contained in:
Dany LE 2021-12-19 20:12:36 +01:00
parent ad045dcc80
commit ae9c884997

View File

@ -78,7 +78,7 @@ DiyaBoot >> createRenderer [
{ #category : #events }
DiyaBoot >> createWindow [
|handle|
handle := SDL2 createWindow: 'Diya test'
handle := SDL2 createWindow: 'Diya'
x: 0
y: 0
width: display w
@ -187,4 +187,6 @@ DiyaBoot >> startx [
window destroy.
SDL2 quit.
Transcript show: 'System quit'; cr.
self class reset.
Smalltalk garbageCollect.
]