I found a memory leak, just reading Nyquist C sources
Posted: Fri Nov 22, 2013 11:15 pm
Is this the right board to report this? Call it a "code review."
Try this in the Nyquist prompt, no matter how small the selection, and watch memory usage of the Audacity process:
Untried fix: at line 106 of samples.c, change
to
(This on just my first day of digging into the sources. Time to install an actual compiler and debugger, I suppose.)
Try this in the Nyquist prompt, no matter how small the selection, and watch memory usage of the Audacity process:
Code: Select all
(dotimes (i 10000000)
(snd-maxsamp s))
Code: Select all
return (double) (s->scale * result);
Code: Select all
{ double the_result = (s->scale * result); sound-unref(s); return the_result; }