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: WizFi250_AP_HelloWorld
Fork of mbed-src by
Diff: common/CallChain.cpp
- Revision:
- 212:34d62c0b2af6
- Parent:
- 36:ab3ee77451e7
--- a/common/CallChain.cpp Sun May 25 08:00:07 2014 +0100
+++ b/common/CallChain.cpp Mon May 26 18:15:07 2014 +0100
@@ -3,13 +3,13 @@
namespace mbed {
-CallChain::CallChain(int size) : _size(size), _elements(0) {
+CallChain::CallChain(int size) : _chain(), _size(size), _elements(0) {
_chain = new pFunctionPointer_t[size]();
}
CallChain::~CallChain() {
clear();
- delete _chain;
+ delete _chain;
}
pFunctionPointer_t CallChain::add(void (*function)(void)) {
