mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10742 from teijokinnunen/cthunk_free_fix
CThunk: Fix assertion when CThunk object is destroyedpull/10776/head
commit
eb12029215
|
@ -64,8 +64,10 @@ public:
|
|||
|
||||
~CThunk()
|
||||
{
|
||||
cthunk_free(_entry);
|
||||
_entry = NULL;
|
||||
if (_entry != NULL) {
|
||||
cthunk_free(_entry);
|
||||
_entry = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
inline CThunk(T *instance, CCallbackSimple callback)
|
||||
|
|
Loading…
Reference in New Issue