mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 17:43:34 +08:00
Proper destruction of DynamicTransferBuffer
This commit is contained in:
@@ -96,6 +96,11 @@ public:
|
||||
IsDynamicallyAllocatable<DynamicTransferBuffer>::check();
|
||||
}
|
||||
|
||||
~DynamicTransferBuffer()
|
||||
{
|
||||
resetImpl();
|
||||
}
|
||||
|
||||
int read(unsigned int offset, uint8_t* data, unsigned int len) const;
|
||||
int write(unsigned int offset, const uint8_t* data, unsigned int len);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user