Scope:
Adds a null-pointer check on i2c_dev in begin() to avoid memory leak if begin() is called more than once, e.g. if begin() fails the first time.
Adds destructor to class.
Limitations:
Does not address memory issues with default shallow copy constructor.
Scope: Adds a null-pointer check on i2c_dev in begin() to avoid memory leak if begin() is called more than once, e.g. if begin() fails the first time. Adds destructor to class.
Limitations: Does not address memory issues with default shallow copy constructor.