mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 05:18:03 +00:00
d/ns: Fix memory leak in math
This commit is contained in:
parent
1a5dde79af
commit
d4011ed78a
1
doc/changes/drivers/mr.564.md
Normal file
1
doc/changes/drivers/mr.564.md
Normal file
|
@ -0,0 +1 @@
|
|||
North Star: Fix memory leak in math code.
|
|
@ -120,13 +120,13 @@ public:
|
|||
}
|
||||
|
||||
inline Vector3
|
||||
operator/(const float &d)
|
||||
operator/(const float &d) const
|
||||
{
|
||||
Vector3 *ret = new Vector3();
|
||||
ret->x = (x / d);
|
||||
ret->y = (y / d);
|
||||
ret->z = (z / d);
|
||||
return *ret;
|
||||
Vector3 ret;
|
||||
ret.x = (x / d);
|
||||
ret.y = (y / d);
|
||||
ret.z = (z / d);
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline Vector3 operator*(const float &d)
|
||||
|
|
Loading…
Reference in a new issue