INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 44:36d12d319078
- Parent:
- 43:8120a1ff3055
- Child:
- 46:116dadbc80f1
--- a/Components/VL6180X/vl6180x_class.h Mon Mar 14 15:58:24 2016 +0000 +++ b/Components/VL6180X/vl6180x_class.h Tue Mar 15 12:51:39 2016 +0000 @@ -131,7 +131,9 @@ /** Destructor */ - virtual ~VL6180X(){} + virtual ~VL6180X(){ + if (gpio1Int != NULL) delete gpio1Int; + } /* warning: VL6180X class inherits from GenericSensor, RangeSensor and LightSensor, that haven`t a destructor. The warning should request to introduce a virtual destructor to make sure to delete the object */