mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Deallocating memory used by UAVCAN virtual iface on destruction
This commit is contained in:
parent
a570d1de7d
commit
1ace017cb8
@ -114,6 +114,14 @@ public:
|
||||
uavcan::IsDynamicallyAllocatable<Item>::check();
|
||||
}
|
||||
|
||||
~Queue()
|
||||
{
|
||||
while (!isEmpty())
|
||||
{
|
||||
pop();
|
||||
}
|
||||
}
|
||||
|
||||
bool isEmpty() const { return list_.isEmpty(); }
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user