File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ namespace Concurrency { namespace streams
251
251
source.release (data, 0 );
252
252
}
253
253
254
- std::shared_ptr<CharType> buf (new CharType[count]);
254
+ std::shared_ptr<CharType> buf (new CharType[count], [](CharType *buf) { delete [] buf; } );
255
255
256
256
auto post_write =
257
257
[buf](pplx::task<size_t > op)-> pplx::task<size_t >
@@ -710,7 +710,7 @@ namespace Concurrency { namespace streams
710
710
[buffer,data](pplx::task<size_t > op)-> pplx::task<size_t >
711
711
{
712
712
auto b = buffer;
713
- b.release (data,op.get ());
713
+ b.release (data, op.get ());
714
714
return op;
715
715
};
716
716
return target.putn (data, count).then (post_write);
@@ -723,7 +723,7 @@ namespace Concurrency { namespace streams
723
723
buffer.release (data, 0 );
724
724
}
725
725
726
- std::shared_ptr<CharType> buf (new CharType[count]);
726
+ std::shared_ptr<CharType> buf (new CharType[count], [](CharType *buf) { delete [] buf; } );
727
727
728
728
auto post_write =
729
729
[buf](pplx::task<size_t > op) -> pplx::task<size_t >
You can’t perform that action at this time.
0 commit comments