diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2014-06-18 15:53:04 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2014-06-18 15:53:04 -0700 |
commit | 8296c569c104cf7c23a84d42c5b7236306842799 (patch) | |
tree | a16a6dbc77a01f69a44adf28a70633a81a61603c /gr-uhd/include/gnuradio/uhd/usrp_source.h | |
parent | c138442d414168b681c0d4900906360a27b4c8c3 (diff) |
uhd: unexposed usrp_sink::get_device() and usrp_source::get_device() from SWIG
* multi_usrp class is not exposed to SWIG, so function returned a SwigPyObject and caused a memory leak when Python exits
* It is not practical to expose multi_usrp to SWIG, so simply tell SWIG to ignore it
Diffstat (limited to 'gr-uhd/include/gnuradio/uhd/usrp_source.h')
-rw-r--r-- | gr-uhd/include/gnuradio/uhd/usrp_source.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-uhd/include/gnuradio/uhd/usrp_source.h b/gr-uhd/include/gnuradio/uhd/usrp_source.h index f330ee0901..2e165cf771 100644 --- a/gr-uhd/include/gnuradio/uhd/usrp_source.h +++ b/gr-uhd/include/gnuradio/uhd/usrp_source.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2010-2013 Free Software Foundation, Inc. + * Copyright 2010-2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -535,6 +535,8 @@ namespace gr { /*! * Get access to the underlying uhd device object. + * + * NOTE: This function is only available in C++. * \return the multi usrp device object */ virtual ::uhd::usrp::multi_usrp::sptr get_device(void) = 0; |