aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/chdr_tx_data_xport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/chdr_tx_data_xport.cpp')
-rw-r--r--host/lib/rfnoc/chdr_tx_data_xport.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/rfnoc/chdr_tx_data_xport.cpp b/host/lib/rfnoc/chdr_tx_data_xport.cpp
index cb28c7ac9..550dde59a 100644
--- a/host/lib/rfnoc/chdr_tx_data_xport.cpp
+++ b/host/lib/rfnoc/chdr_tx_data_xport.cpp
@@ -69,6 +69,12 @@ chdr_tx_data_xport::chdr_tx_data_xport(uhd::transport::io_service::sptr io_srv,
recv_cb);
}
+chdr_tx_data_xport::~chdr_tx_data_xport()
+{
+ // Release send_io before allowing members needed by callbacks be destroyed
+ _send_io.reset();
+}
+
/*
* To configure flow control, we need to send an init strc packet, then
* receive a strs containing the stream endpoint ingress buffer size. We