diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-08-25 09:31:46 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-08-25 09:31:46 -0700 |
commit | 222628c74d2a0186fa369bb36f424c843101b0f6 (patch) | |
tree | 2fbd9c7f5af8bd2672e99e2a211c6f4cddcc3e1e | |
parent | 92b56aa801181869edf49050e2401bfdfbc7f05c (diff) |
runtime: fix hier_block2 disconnect_all()
-rw-r--r-- | gnuradio-runtime/lib/hier_block2_detail.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/hier_block2_detail.cc b/gnuradio-runtime/lib/hier_block2_detail.cc index 83207d978c..704e92599e 100644 --- a/gnuradio-runtime/lib/hier_block2_detail.cc +++ b/gnuradio-runtime/lib/hier_block2_detail.cc @@ -436,8 +436,11 @@ namespace gr { { d_fg->clear(); d_blocks.clear(); - d_inputs.clear(); - d_outputs.clear(); + + int max_inputs = d_owner->input_signature()->max_streams(); + int max_outputs = d_owner->output_signature()->max_streams(); + d_inputs = std::vector<endpoint_vector_t>(max_inputs); + d_outputs = endpoint_vector_t(max_outputs); } endpoint_vector_t |