Re: GdkPixbuf, GdkPixmap and GdkBitmap



"Sergey V. Udaltsov" <svu@pop.convey.ru> writes:
> 
> In GNOME CVS (to be exact, in dia), I found the interesting code.
> They use gdk_pixbuf_render_pixmap_and_mask and never free the allocated
> GdkPixmap and GdkBitmap (at least, I could not find the ..._free_...
> code). What could this be? Does gdk_pixbuf_render_pixmap_and_mask use
> some static structures? Should the application free these objects? If I
> pass these objects to gtk_pixmap_set, will GtkPixmap free them properly
> in the end (or in the next gtk_pixmap_set call)?
> 

I believe you do need to gdk_pixmap_unref() the result of 
gdk_pixbuf_render_pixmap_and_mask(). Dia may have a memory leak there.

Havoc




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