Skip to content

Commit 9390902

Browse files
committed
dont use defer
1 parent 8dcf9f9 commit 9390902

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/virtual_file_system/main.nim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import webui
22
import ./vfs
33

44
proc main() =
5-
defer:
6-
# Free all memory resources (Optional)
7-
clean()
8-
95
# Create new windows
106
let window = newWindow()
117

@@ -23,4 +19,7 @@ proc main() =
2319
# Wait until all windows get closed
2420
wait()
2521

22+
# Free all memory resources (Optional)
23+
clean()
24+
2625
main()

0 commit comments

Comments
 (0)