summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2013-08-25 09:33:35 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2013-08-25 09:33:35 -0700
commit523a53ac387a699cef4d8e784561cdcaffad39cf (patch)
tree61b75c0af0e90f1ca61add4519b3f9c35548494d /gnuradio-runtime
parent03dbb5c3ab5b4cfa1a8f9a14cdf3a343ffd80042 (diff)
parent222628c74d2a0186fa369bb36f424c843101b0f6 (diff)
Merge branch 'maint'
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/lib/hier_block2_detail.cc7
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 85b848101c..ebfaa6fa69 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