yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10583
Re: [Branch ~yade-pkg/yade/git-trunk] Rev 3840: Check, whether manipulatedFrame exist, if not - create it.
2014-03-17 9:23 GMT+01:00 Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>:
> + if(manipulatedFrame()==0) setManipulatedFrame(new qglviewer::ManipulatedFrame());
>
> It sounds like a memory leak. No?
I believe no. It just checks, whether manipulatedFrame exists and
creates a new one, if it is not. Otherwise we get segfault on new
QGLViewer.
Anton
Follow ups
References