Re: Leaking pixmaps
Jacques GARRIGUE <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
From: Jon Harrop <[email protected]> > Has anyone found a bug where using pixmaps causes a memory leak resulting in X > consuming all memory and dying? > > I just ditched pixmaps in favour of direct rendering which fixed the problem > and the symptom deterred me from investigating... This is not a bug, but the normal behaviour since pixmap are on the server side, and it would be complicated to manage them properly. This is the reason there is a Gdk.Pixmap.destroy function, so that you can destroy pixmaps early when you don't need them anymore. examples/timer.ml shows how to use it. Jacques