Fixed a memory leak in sensor.cpp