Guest User

Untitled

a guest
Mar 29th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp
  2. index 607badd..f440d6e 100644
  3. --- a/host/lib/usrp/usrp1/usrp1_impl.cpp
  4. +++ b/host/lib/usrp/usrp1/usrp1_impl.cpp
  5. @@ -413,6 +413,12 @@ usrp1_impl::~usrp1_impl(void){
  6. this->enable_rx(false);
  7. this->enable_tx(false);
  8. )
  9. + //Since we need to decontruct the tree,
  10. + //and dboard manager has tree references:
  11. + //This reset cleans up the subtree references.
  12. + BOOST_FOREACH(const std::string &key, _dbc.keys()){
  13. + _dbc[key].dboard_manager.reset();
  14. + }
  15. _tree.reset(); //resets counts on sptrs held in tree
  16. _soft_time_ctrl.reset(); //stops cmd task before proceeding
  17. _io_impl.reset(); //stops vandal before other stuff gets deconstructed
Advertisement
Add Comment
Please, Sign In to add comment