From e256f3db52535b4b03086c5f7e0c8aed178e322b Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 16 Feb 2017 11:32:55 -0800 Subject: UBX: Add UHD_SAFE_CALL for MAX287x dectructor to prevent terminate --- host/lib/usrp/common/max287x.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp') 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 #include #include +#include #include #include #include @@ -475,7 +476,10 @@ max287x::max287x(write_fn func) : template max287x::~max287x() { - shutdown(); + UHD_SAFE_CALL + ( + shutdown(); + ) } template -- cgit v1.2.3