guile-user
[Top][All Lists]
Advanced

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

Re: Smobs & garbage collecting


From: Han-Wen Nienhuys
Subject: Re: Smobs & garbage collecting
Date: Sat, 31 Dec 2005 00:32:49 +0000 (UTC)

In article <address@hidden>,
Christian Mauduit  <address@hidden> wrote:
>The funny thing is that if I stop calling (display %my-smob) then all
>the smobs are correctly freed when calling scm_gc().

There was a memory leak in the display routines, which was recently
fixed in the CVS branch.  FWIW, obsessively tracking frees and mallocs
doesn't make much sense when you have GC. The nice thing of GC is that
you can stop worrying about having to balance every malloc with
exactly one free, and pass around SCM objects as much as you like,
without headaches about ownership of objects.





reply via email to

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