mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Merge pull request #3682 from ZappoMan/moreLightPropertiesAttempt2
fix memory leak
This commit is contained in:
commit
825482499a
2 changed files with 4 additions and 1 deletions
|
@ -102,6 +102,9 @@ EntityItemProperties::EntityItemProperties() :
|
|||
_sittingPoints(NULL),
|
||||
_naturalDimensions(1.0f, 1.0f, 1.0f)
|
||||
{
|
||||
}
|
||||
|
||||
EntityItemProperties::~EntityItemProperties() {
|
||||
if (_sittingPoints) {
|
||||
delete _sittingPoints;
|
||||
_sittingPoints = NULL;
|
||||
|
|
|
@ -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