XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
Diff: Core/BufferedArray.cpp
- Revision:
- 1:3dc0ec2f9fd6
- Parent:
- 0:837e6c48e90d
--- a/Core/BufferedArray.cpp Thu Oct 22 12:28:26 2015 +0000 +++ b/Core/BufferedArray.cpp Thu Oct 22 20:02:11 2015 +0000 @@ -64,7 +64,8 @@ return; if (length > max) { - delete[] data; + if (data != NULL) + delete[] data; data = new char[length]; }