aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2017-02-16 11:32:55 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-16 14:20:45 -0800
commite256f3db52535b4b03086c5f7e0c8aed178e322b (patch)
treea3acc3420809c67e6ee24498f90ff14c4fd3f22a /host/lib
parentd5d3e5a7cc4a8a5cbb1685f2e00d6301a9a9781f (diff)
downloaduhd-e256f3db52535b4b03086c5f7e0c8aed178e322b.tar.gz
uhd-e256f3db52535b4b03086c5f7e0c8aed178e322b.tar.bz2
uhd-e256f3db52535b4b03086c5f7e0c8aed178e322b.zip
UBX: Add UHD_SAFE_CALL for MAX287x dectructor to prevent terminate
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/common/max287x.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/common/max287x.hpp b/host/lib/usrp/common/max287x.hpp
index 9022e0f02..2e87dc6ff 100644
--- a/host/lib/usrp/common/max287x.hpp
+++ b/host/lib/usrp/common/max287x.hpp
@@ -23,6 +23,7 @@
#include <uhd/types/ranges.hpp>
#include <uhd/utils/log.hpp>
#include <uhd/utils/math.hpp>
+#include <uhd/utils/safe_call.hpp>
#include <boost/assign.hpp>
#include <boost/function.hpp>
#include <boost/thread.hpp>
@@ -475,7 +476,10 @@ max287x<max287x_regs_t>::max287x(write_fn func) :
template <typename max287x_regs_t>
max287x<max287x_regs_t>::~max287x()
{
- shutdown();
+ UHD_SAFE_CALL
+ (
+ shutdown();
+ )
}
template <typename max287x_regs_t>