Homec4science

Removes segfault when destroying liboncilla

Description

Removes segfault when destroying liboncilla

After investigation of webots C interface, one should not destroy the
pointer to the supervisor you create. Indeed the C++ API is faulty :
everything is given to you as a pointer but the memory is internally
managed. So you never know when you can safely destroy an element. So
to avoid this we autorize the main root element (supervisor) to leak,
and let all other object not leaking..

Event Timeline

Alexandre Tuleu <alexandre.tuleu.2005@polytechnique.org> committed R6624:7a586e215beb: Removes segfault when destroying liboncilla (authored by Alexandre Tuleu <alexandre.tuleu.2005@polytechnique.org>).May 15 2013, 17:48