On 2010/06/17 20:04:53, Neil Puttock wrote:
On 2010/06/17 19:49:26, Patrick McCarty wrote:

> Adding the following code fixes the memory leak Neil refers to,
though there
> might be a better way.
>
> (if (ly:get-option 'svg-woff)
>     (module-define! (ly:outputter-module outputter) 'paper #f))

Ah, that's cute. :)

I was searching throught the Guile reference for something like
`module-undefine!'.

Oh yeah, I forgot about the undocumented `module-remove!' that I
discovered a while back:

(if (ly:get-option 'svg-woff)
  (module-remove! (ly:outputter-module outputter) 'paper))

http://codereview.appspot.com/1428042/show

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to