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
251251 source.release (data, 0 );
252252 }
253253
254- std::shared_ptr<CharType> buf (new CharType[count]);
254+ std::shared_ptr<CharType> buf (new CharType[count], [](CharType *buf) { delete [] buf; } );
255255
256256 auto post_write =
257257 [buf](pplx::task<size_t > op)-> pplx::task<size_t >
@@ -710,7 +710,7 @@ namespace Concurrency { namespace streams
710710 [buffer,data](pplx::task<size_t > op)-> pplx::task<size_t >
711711 {
712712 auto b = buffer;
713- b.release (data,op.get ());
713+ b.release (data, op.get ());
714714 return op;
715715 };
716716 return target.putn (data, count).then (post_write);
@@ -723,7 +723,7 @@ namespace Concurrency { namespace streams
723723 buffer.release (data, 0 );
724724 }
725725
726- std::shared_ptr<CharType> buf (new CharType[count]);
726+ std::shared_ptr<CharType> buf (new CharType[count], [](CharType *buf) { delete [] buf; } );
727727
728728 auto post_write =
729729 [buf](pplx::task<size_t > op) -> pplx::task<size_t >
You can’t perform that action at this time.
0 commit comments