[Xmonad] darcs patch: fixes a possible memory leak

Andrea Rossato mailing_list at istitutocolli.org
Mon Jun 25 07:32:58 EDT 2007

On Mon, Jun 25, 2007 at 08:43:56PM +1000, Donald Bruce Stewart wrote:
> should we have something like:
>     withFont $ \f -> do
>         some action
> to track this resource? Or perhaps tie it to  ForeignPtr, to have the GC
> free it automatically?

Since we have Decoration.withGC and setFont requires the
G(aphic)C(context) I think we could modify that function. Something

withGC :: Drawable -> (Display -> Drawable -> GC -> FontStruct -> X ()) -> X () 

If this is ok, I'll send the patch (and you can forget this one).


More information about the Xmonad mailing list