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

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