mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 00:33:11 +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),
|
||||
_naturalDimensions(1.0f, 1.0f, 1.0f)
|
||||
{
|
||||
}
|
||||
|
||||
EntityItemProperties::~EntityItemProperties() {
|
||||
if (_sittingPoints) {
|
||||
delete _sittingPoints;
|
||||
_sittingPoints = NULL;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void EntityItemProperties::setSittingPoints(const QVector<SittingPoint>& sittingPoints) {
|
||||
if (!_sittingPoints) {
|
||||
|
|
|
@ -96,7 +96,7 @@ class EntityItemProperties {
|
|||
friend class LightEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
public:
|
||||
EntityItemProperties();
|
||||
virtual ~EntityItemProperties() { };
|
||||
virtual ~EntityItemProperties();
|
||||
|
||||
virtual QScriptValue copyToScriptValue(QScriptEngine* engine) const;
|
||||
virtual void copyFromScriptValue(const QScriptValue& object);
|
||||
|
|
Loading…
Reference in a new issue