Hello,
I’m experimenting leaks with daeIntegrationObjects.
I had a look to the code and saw:
class daeIntegrationObject
{
/** A smartRef to the element associated with this integration object. */
daeElementRef _element;
}
class daeElement
{
daeIntegrationObject* _intObject;
~daeElement()
{
if (_intObject)
_intObject->release();
}
}
I’m quite confused about what owns what here.
In the integration example, I saw:
class intGeometry : public daeIntegrationObject
{
daeElement* _element;
}
which would make daeElement own daeIntegrationObject
Do I have to do as in the integration example (ignore the daeElementRef daeIntegrationObject::_element) or do I miss something ?
Regards,
Guillaume