Hello users,
I noticed that everywhere in the opensg source code, the
intersectAction is used like this
>From OSGNavigator.cpp:
IntersectAction * act = IntersectAction::create();
Line line;
_vp->getCamera()->calcViewRay(line, x, y, *_vp);
Pnt3f lp1 = line.getPosition();
Vec3f ld1 = line.getDirection();
act->setLine(line);
act->apply(_vp->getRoot());
if (act->didHit())
{
Pnt3f p1 = act->getHitPoint();
_trackball.setAt(p1);
}
But the act (IntersectAction *) is a real pointer (not a reference
pointer) , so a delete should be required.
Then, I searched for memory leaks in my test apps and there are a lot
of leaks due to the IntersectAction ... adding some dummy
IntersectAction with and without the corresponding 'delete's shows
this bug...I think
So, Is this a bug?
Additionally, there are other bugs in the OSGVRML** classes.
Bye!
--
Aitor Moreno
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?frÿfad-ysdn-ostg-q22005
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users