Re: Glib object_unref



Marco La Porta said the following:
Hi all, I'm tryng to use Gdk::PixbufAnimationIter to load an animated gif. In the documentation i read that i have to free, after use, the
Glib::RefPtr<Gdk::PixbufAnimationIter> with Glib:: object_unref.

Where is defined Glib:: object_unref?

Did they mean that i have to use g_ object_unref directly on the RefPtr?

The docs are taken from the C API docs so statements like these appear. There is no need to use g_object_unref because Glib::RefPtr takes care of ref/unref automatically.

--
José Alburquerque
jaalburquerque cox net



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