← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2344: - miniEigen : memory leak source suspected (FIXME added)

 

On 12/07/10 11:36, Václav Šmilauer wrote:
+//FIXME : risk of memory leak with these "new"?
  static Quaternionr* Quaternionr_fromAxisAngle(const Vector3r&  axis, const Real angle){ return new Quaternionr(AngleAxisr(angle,axis)); }
  static Quaternionr* Quaternionr_fromAngleAxis(const Real angle, const Vector3r&  axis){ return new Quaternionr(AngleAxisr(angle,axis)); }
Bruno, what is the use of this?? Of course it will leak memory!!

Who wrote those functions?


FYI MinkowskI (I changed that at a few places, but not everywhere)

Ah, damn, thanks! :)

Bruno




References