Fix for delete operator. (#903)

This commit is contained in:
Jonathan Hui
2016-10-31 08:49:49 -07:00
committed by GitHub
parent f13a4f8c24
commit 1de494ffa0
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -40,5 +40,6 @@
inline void *operator new(size_t, void *p) throw() { return p; }
void OT_CDECL operator delete(void *, size_t) throw();
void OT_CDECL operator delete(void *) throw();
#endif // NEW_HPP_
-1
View File
@@ -37,7 +37,6 @@
#include <common/debug.hpp>
#include <common/logging.hpp>
#include <common/message.hpp>
#include <common/new.hpp>
#include <net/icmp6.hpp>
#include <net/ip6.hpp>
#include <net/ip6_address.hpp>
+1
View File
@@ -67,6 +67,7 @@ otInstance *sInstance = NULL;
#endif
void OT_CDECL operator delete(void *, size_t) throw() { }
void OT_CDECL operator delete(void *) throw() { }
otInstance::otInstance(void) :
mReceiveIp6DatagramCallback(NULL),