This doesn't currently make a difference, since istream-concat keeps them
internally referenced. In case this changes and snapshot handling isn't
fixed similarly to istream-chain, the unit test should now fail.
};
input = i_stream_create_concat(test_istreams);
+ for (unsigned int i = 0; test_istreams[i] != NULL; i++) {
+ struct istream *tmp_istream = test_istreams[i];
+ i_stream_unref(&tmp_istream);
+ }
+
test_istream_set_size(test_istreams[0], 20);
test_istream_set_size(test_istreams[1], 0);
test_istream_set_size(test_istreams[2], 0);
"!\"#$%&'()*+,-./01234567890:;<=", 51) == 0);
i_stream_unref(&input);
- for (unsigned int i = 0; test_istreams[i] != NULL; i++)
- i_stream_unref(&test_istreams[i]);
test_end();
}