Re: Question about pixbuf
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-list gnome org
- Subject: Re: Question about pixbuf
- Date: Tue, 29 Apr 2008 19:21:21 +0100
On Tue, 2008-04-29 at 12:48 -0500, Moises wrote:
> I am working with openGL and GTK+, and I am loading
> Images with gdk_pixbuf_new_from_file() for generate
> the textures, when I generate opengl texture I will
> not need the pixbuf, then I have to free the memory of
> the image, my question is, as I free memory of
> pixbuf?
GdkPixbuf is a GObject, so the usual GObject API for decreasing the
reference count will apply:
g_object_unref (pixbuf);
if the reference count hit 0 then the pixbuf will be disposed and all
its associated data will be released.
ciao,
Emmanuele.
--
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]