Right now calling, for instance 

weak GLib.List l = this.get_childernen 

creates

GList* children = clutter_container_get_children (CLUTTER_CONTAINER (self));

***but it clutter_container_get_children returns a copy of the list, and it 
must be freed,as it is suggested by the documentation:
"clutter_container_get_children () ...
Returns :    a list of ClutterActors. Use g_list_free() on the returned list 
when done"

The workaround is to manually memory manage the list:
GLib.List* children
...
delete children

creates the expected :

GList* children = clutter_container_get_children (CLUTTER_CONTAINER (self));
...
g_list_free(children);

Im I doing something wrong?

And also, which is the right way to create and use the list;
GLib.List children

MihailNaydnov



      
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to