From 49d05ada725283aedbc6734533e287b6a7b669d2 Mon Sep 17 00:00:00 2001 From: Virendra Kakade Date: Wed, 24 Apr 2019 14:36:42 -0700 Subject: mpmd: Release resources on destruction This will clear the property tree, block registry, transport managers, and motherboard list on destruction of mpmd_impl. --- host/lib/usrp/mpmd/mpmd_impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/mpmd/mpmd_impl.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_impl.cpp b/host/lib/usrp/mpmd/mpmd_impl.cpp index 2f3584498..05d847060 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_impl.cpp @@ -231,7 +231,9 @@ mpmd_impl::mpmd_impl(const device_addr_t& device_args) mpmd_impl::~mpmd_impl() { - /* nop */ + _rfnoc_block_ctrl.clear(); + _tree.reset(); + _mb.clear(); } /***************************************************************************** -- cgit v1.2.3