[Clg-devel] [Espen S Johnsen <esj@cs.uit.no>] Re: [Fwd: free pixbuf!]
Brought to you by:
espen
From: Espen S J. <es...@cs...> - 2006-05-16 09:45:29
|
ephrem boudonnet <Eph...@ir...> writes: > I use the gdkpixbuf function "pixbuf-scale-simple", to draw a pixbuf > with different scales. I'd just like to know if the unreferenced > pixbuf returned should be freed, or is it done automatically? The returned pixbuf has in this case a ref. count of one, which has to be unreferenced, but it will be done automatically if (referenced pixbuf) is used as the return type: (defbinding pixbuf-scale-simple (src width height &optional (interpolation :nearest)) (referenced pixbuf) (src pixbuf) (width int) (height int) (interpolation interp-type)) -- Espen |