Fix "reference to stack memory" warning in Window/Unix/SensorImpl.cpp