Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-11-30 06:34:06 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-11-30 06:34:06 +0400
commit8aff45d8f671e7eb2f404c8f194e06d88c5147c9 (patch)
tree6df9a0a7cfc1444a2caf2e90566297a2e1876446 /source/gameengine/GameLogic
parenteba07b77da43425cf539e8a13f9e0a2ad0ffa405 (diff)
Fix T36804: the property sensor when set to interval was causing a memory leak
The property sensor was using CValue::FindIdentifier(), which does an AddRef(). However, the property sensor was not calling Release() when it was done with the value. This could cause more leaks when used in conjunction with the copy property actuator since it would really throw off ref counts.
Diffstat (limited to 'source/gameengine/GameLogic')
-rw-r--r--source/gameengine/GameLogic/SCA_PropertySensor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/GameLogic/SCA_PropertySensor.cpp b/source/gameengine/GameLogic/SCA_PropertySensor.cpp
index f02ac495233..ad57e529297 100644
--- a/source/gameengine/GameLogic/SCA_PropertySensor.cpp
+++ b/source/gameengine/GameLogic/SCA_PropertySensor.cpp
@@ -207,6 +207,7 @@ bool SCA_PropertySensor::CheckPropertyCondition()
result = (min <= val) && (val <= max);
}
+ orgprop->Release();
break;
}