Re: GArray** as return value - howto to free from python?

Hi Tomeu,

On Tue, 2011-06-07 at 14:59 +0200, Tomeu Vizoso wrote:
> On Sat, Jun 4, 2011 at 13:31, Thomas Bechtold
> <thomasbechtold jpberlin de> wrote:
> >
> > My question is, how i can free the GArray's from python?
> There's no way to do that explicitly, PyGObject will do that for you
> once there isn't any reference to it.

i tried to delete the result list (with the del() statement) and also
tried to execute the garbage collection by hand. the memory was only
freed when i exit the python interpreter.

Maybe i use the wrong transfer-mode for introspection?
i use: 
* @res_U: (element-type gdouble) (array) (out) (transfer full): array
with voltage values



Attachment: signature.asc
Description: This is a digitally signed message part

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