Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: USBMouseKeyboard USBMouseKeyboardlib
Diff: USBSerial/CircBuffer.h
- Revision:
- 14:d495202c90f4
- Parent:
- 1:80ab0d068708
- Child:
- 51:deafa44182d9
--- a/USBSerial/CircBuffer.h Tue Sep 10 15:14:55 2013 +0300
+++ b/USBSerial/CircBuffer.h Thu Sep 12 14:45:27 2013 +0100
@@ -29,6 +29,10 @@
buf = (T *)malloc(size * sizeof(T));
};
+ ~CircBuffer() {
+ free(buf);
+ }
+
bool isFull() {
return ((write + 1) % size == read);
};