- more memory cleanup
This commit is contained in:
parent
9817e8a860
commit
63cf199322
|
@ -175,6 +175,7 @@ Unit::Unit(int id, UnitPathInterface *unitpath, const Vec2i &pos, const UnitType
|
|||
this->lastRenderFrame = 0;
|
||||
this->visible = true;
|
||||
this->retryCurrCommandCount=0;
|
||||
this->screenPos = Vec3f(0.0);
|
||||
|
||||
level= NULL;
|
||||
loadType= NULL;
|
||||
|
|
|
@ -146,9 +146,12 @@ public:
|
|||
}
|
||||
|
||||
std::string getString() const {
|
||||
std::ostringstream streamOut(std::ostringstream::out);
|
||||
streamOut << "x [" << x << "] y [" << y << "]";
|
||||
return streamOut.str();
|
||||
std::ostringstream streamOut;
|
||||
streamOut << "x [" << x;
|
||||
streamOut << "] y [" << y << "]";
|
||||
std::string result = streamOut.str();
|
||||
streamOut.str(std::string());
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -330,9 +333,13 @@ public:
|
|||
}
|
||||
|
||||
std::string getString() const {
|
||||
std::ostringstream streamOut(std::ostringstream::out);
|
||||
streamOut << "x [" << x << "] y [" << y << "] z [" << z << "]";
|
||||
return streamOut.str();
|
||||
std::ostringstream streamOut;
|
||||
streamOut << "x [" << x;
|
||||
streamOut << "] y [" << y;
|
||||
streamOut << "] z [" << z << "]";
|
||||
std::string result = streamOut.str();
|
||||
streamOut.str(std::string());
|
||||
return result;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -473,9 +480,14 @@ public:
|
|||
}
|
||||
|
||||
std::string getString() const {
|
||||
std::ostringstream streamOut(std::ostringstream::out);
|
||||
streamOut << "x [" << x << "] y [" << y << "] z [" << z << "] w [" << w << "]";
|
||||
return streamOut.str();
|
||||
std::ostringstream streamOut;
|
||||
streamOut << "x [" << x;
|
||||
streamOut << "] y [" << y;
|
||||
streamOut << "] z [" << z;
|
||||
streamOut << "] w [" << w << "]";
|
||||
std::string result = streamOut.str();
|
||||
streamOut.str(std::string());
|
||||
return result;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue