summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-23 15:30:22 -0700
committerMichael West <michael.west@ettus.com>2013-10-23 15:30:22 -0700
commitbc372dd82ca727e59794a7147dcf9b6a332cc78c (patch)
tree15c0a3db3d37e4184e10d6f6c766cca783ab4c97 /host
parentb6ea32f321023fa8b898974130561ef2ad351322 (diff)
downloaduhd-bc372dd82ca727e59794a7147dcf9b6a332cc78c.tar.gz
uhd-bc372dd82ca727e59794a7147dcf9b6a332cc78c.tar.bz2
uhd-bc372dd82ca727e59794a7147dcf9b6a332cc78c.zip
CID 1104311: Fixed uninitialized pointer
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/transport/zero_copy.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp
index 1dc0e8e26..9b5b25e97 100644
--- a/host/include/uhd/transport/zero_copy.hpp
+++ b/host/include/uhd/transport/zero_copy.hpp
@@ -29,7 +29,9 @@ namespace uhd{ namespace transport{
//! Simple managed buffer with release interface
class UHD_API managed_buffer{
public:
- managed_buffer(void):_ref_count(0){}
+ managed_buffer(void):_ref_count(0),_buffer(NULL),_length(0){}
+
+ virtual ~managed_buffer(void) {}
/*!
* Signal to the transport that we are done with the buffer.