Re: GdkPixbuf, GdkPixmap and GdkBitmap
- From: Havoc Pennington <hp redhat com>
- To: "Sergey V. Udaltsov" <svu pop convey ru>
- Cc: gnome-devel-list gnome org
- Subject: Re: GdkPixbuf, GdkPixmap and GdkBitmap
- Date: 31 May 2000 16:04:34 -0400
"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]