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.
This commit is contained in:
Mitchell Stokes 2013-11-29 18:34:06 -08:00
parent eba07b77da
commit 8aff45d8f6
Notes: blender-bot 2023-02-14 11:49:29 +01:00
Referenced by issue #36804, Combination of Dubugging Properties, Copy Property Actuator, and Property Interval Sensor causes memory leak
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ bool SCA_PropertySensor::CheckPropertyCondition()
result = (min <= val) && (val <= max);
}
orgprop->Release();
break;
}