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