Debian Codegraph @

test/manually/editorpause.praat

raw
1 #
2 # This leaks in the combination of "View & Edit" and "removeObject".
3 # it leaks 5 Things every time (on the Mac, not on Windows).
4 #
5 # TODO: figure out what these are.
6 # Steps:
7 # 1. create a Melder_debug number that aims to trace all existing Things.
8 # 2. create an unordered_map that keeps track every time a Thing is created or deleted.
9 #
10
11 objects# = zero# (5)
12 for i to size (objects#)
13 objects# [i] = Create Sound as pure tone: "tone", 1, 0, 0.4, 44100, 440, 0.2, 0.01, 0.01
14 endfor
15
16 for i to size (objects#)
17 selectObject: objects# [i]
18 View & Edit
19
20 editor: objects# [i]
21 beginPause: "test"
22 clicked = endPause: "Next", 1
23 endeditor
24
25 removeObject: objects# [i]
26 endfor
27
28 memoryReport$ = Report memory use
29 appendInfoLine: mid$ (memoryReport$, 22, 160)