mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix memory leak
This commit is contained in:
parent
3d5190333a
commit
950d1ab2a6
@ -632,7 +632,7 @@ complete_pointers(vector_typedWritable &p_list, BamReader *manager) {
|
||||
|
||||
size_t i;
|
||||
for (i = 0; i < _segs.size(); i++) {
|
||||
DCAST_INTO_R(_segs[i]._curve, p_list[used + i], used);
|
||||
_segs[i]._curve = DCAST(ParametricCurve, p_list[used + i]);
|
||||
}
|
||||
|
||||
return used + _segs.size();
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <pandabase.h>
|
||||
|
||||
#include "parametricCurve.h"
|
||||
#include "pointerTo.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : PiecewiseCurve
|
||||
@ -86,7 +87,7 @@ protected:
|
||||
Curveseg() {}
|
||||
Curveseg(ParametricCurve *c, float t) : _curve(c), _tend(t) {}
|
||||
|
||||
ParametricCurve *_curve;
|
||||
PT(ParametricCurve) _curve;
|
||||
float _tend;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user