From: Olivier Andrieu MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: <17582.18966.823383.238839 at karryall.dnsalias.org> Date: Fri, 7 Jul 2006 13:48:38 +0200 To: Richard Jones Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: GDraw.pixmap - do they get cleaned up by the garbage collector? In-Reply-To: <20060705163208.GA20852 at furbychan.cocan.org> References: <20060705163208.GA20852 at furbychan.cocan.org> Content-Type: text/plain; charset=us-ascii Content-Length: 510 Richard Jones [Wednesday 5 July 2006] : > > > If I create pixmap using GDraw.pixmap, and later that pixmap > becomes unreferenced, will the garbage collector clean up the > object, and more importantly, cause the X server to free up the > pixmap? Well it's no different than with other GObjects: when the caml objects is collected, the GTK object has its refcount decremented. Wether the X resource is freed or not when the refcount reaches zero depends on the behaviour of GTK/GDK. -- Olivier