Skip to content
Snippets Groups Projects
Commit 873fe028 authored by Scott Cantor's avatar Scott Cantor
Browse files

XERCESC-2214 - Wrong delete[] in MemBufInputSource dtor

https://issues.apache.org/jira/browse/XERCESC-2214
parent 2a64a944
No related branches found
No related tags found
No related merge requests found
...@@ -48,9 +48,11 @@ class BinInputStream; ...@@ -48,9 +48,11 @@ class BinInputStream;
* *
* The passed buffer can be adopted or merely referenced. If it is adopted, * The passed buffer can be adopted or merely referenced. If it is adopted,
* then it must be dynamically allocated and will be destroyed when the * then it must be dynamically allocated and will be destroyed when the
* input source is destroyed (no reference counting!.) If not adopted, the * input source is destroyed (no reference counting!.) Note that the
* caller must insure that it remains valid until the input source object * deallocation assumes that array deletion should be performed, so do
* is destroyed. * not pass a non-array-allocated buffer if asking for adoption.
* If not adopted, the caller must insure that it remains valid until the
* input source object is destroyed.
* *
* The other option indicates whether each stream created for this input * The other option indicates whether each stream created for this input
* source should get its own copy of the data, or whether it should just * source should get its own copy of the data, or whether it should just
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment