Re: unref and free methods



Hello,

Conscious User [2013-01-29  7:03 -0200]:
> I've noticed that PyGObject exposes unref methods (for example,
> GResource) and free methods (for example GdkRGBA and GtkIconInfo).
> 
> Are those supposed to be used? Doesn't sound like they should, but
> I'm asking in case there is a situation where they are recommended.

You shouldn't need to use them. PyGObject is supposed to do ref
counting and releasing objects by itself, aided by GI annotations.
That's not to say that there wouldn't be bugs (PyGObject is full of
memory leaks still..)

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


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