Deallocating memory used by UAVCAN virtual iface on destruction

This commit is contained in:
Pavel Kirienko authored and Lorenz Meier committed 2015-10-26 10:19:56 +01:00
1 parent a570d1de7d
commit 1ace017cb8
1 file changed
+8
@@ -114,6 +114,14 @@ public:
uavcan::IsDynamicallyAllocatable<Item>::check();
}
~Queue()
{
while (!isEmpty())
{
pop();
}
}
bool isEmpty() const { return list_.isEmpty(); }
/**