[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing C pointers through guile

From: Ludovic Courtès
Subject: Re: Passing C pointers through guile
Date: Thu, 10 Jul 2008 15:01:51 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)


"Kjetil S. Matheussen" <address@hidden> writes:

> Point is that you very often don't need any kind of free functionality.
> For example, if you create a gui widget, you probably have a callback
> function which is called if the gui is closed. That callback
> function can free any allocated memory. Another example from snd
> is creating ladspa plugins (audio plugins in linux). Handlers
> from those, plus variuos configuration stuff, is alive througout
> the whole session and will be automatically freed when the program
> closes.

Sure, but the general case is that a C-implemented object must be
explicitly destroyed when it's no longer referenced by Scheme code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]