mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:24:47 +02:00
fix memory leak
This commit is contained in:
parent
06b31baa2a
commit
4ec70041cc
2 changed files with 5 additions and 2 deletions
|
@ -102,11 +102,14 @@ EntityItemProperties::EntityItemProperties() :
|
||||||
_sittingPoints(NULL),
|
_sittingPoints(NULL),
|
||||||
_naturalDimensions(1.0f, 1.0f, 1.0f)
|
_naturalDimensions(1.0f, 1.0f, 1.0f)
|
||||||
{
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
EntityItemProperties::~EntityItemProperties() {
|
||||||
if (_sittingPoints) {
|
if (_sittingPoints) {
|
||||||
delete _sittingPoints;
|
delete _sittingPoints;
|
||||||
_sittingPoints = NULL;
|
_sittingPoints = NULL;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
void EntityItemProperties::setSittingPoints(const QVector<SittingPoint>& sittingPoints) {
|
void EntityItemProperties::setSittingPoints(const QVector<SittingPoint>& sittingPoints) {
|
||||||
if (!_sittingPoints) {
|
if (!_sittingPoints) {
|
||||||
|
|
|
@ -96,7 +96,7 @@ class EntityItemProperties {
|
||||||
friend class LightEntityItem; // TODO: consider removing this friend relationship and use public methods
|
friend class LightEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||||
public:
|
public:
|
||||||
EntityItemProperties();
|
EntityItemProperties();
|
||||||
virtual ~EntityItemProperties() { };
|
virtual ~EntityItemProperties();
|
||||||
|
|
||||||
virtual QScriptValue copyToScriptValue(QScriptEngine* engine) const;
|
virtual QScriptValue copyToScriptValue(QScriptEngine* engine) const;
|
||||||
virtual void copyFromScriptValue(const QScriptValue& object);
|
virtual void copyFromScriptValue(const QScriptValue& object);
|
||||||
|
|
Loading…
Reference in a new issue