Re: [gtk-list] Re: gdk_pixmap_create_from_xpm's and X memory



   From: James Bailie <jbailie@wwdc.com>
   Date: Thu, 28 Jan 1999 16:45:36 -0500

Hi,

   > The space for pixmaps is allocated by the X server, and is not deallocated
   > when your program exits. You have to tell the X server to destroy the
   > pixmap. It's a form of caching. You need to explicitly call
   > gdk_pixmap_destroy, I believe, for every pixmap you created.

ok, I have looked at sources and here is what I should probably do:

	1. gdk_pixmap_new
	2. gdk_pixmap_ref
	3. ....
	4. gdk_pixmap_unref at the end of my program for every
	   allocated pixmap

Is this correct?
-- 
Pavel Janík ml.
Pavel.Janik@inet.cz



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