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

On Tue, Jun 7, 2011 at 16:41, Thomas Bechtold
<thomasbechtold jpberlin de> wrote:
> 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

Looks good to me, I guess we are leaking here.



> Cheers,
> Tom

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