Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The CLI DataInput object has two ctors, one of which copies the passed-in buffer parameter via new[] and one of which doesn't. In the event that the former is called, the buffer is leaked when the object is deleted/Disposed. Here's the current code for CLI `DataInput::~DataInput`:
```
~DataInput( ) { Cleanup(); }
```
And the code for `DataInput::Cleanup`:
```
void DataInput::Cleanup()
{ //TODO: //GF_SAFE_DELETE_ARRAY(m_buffer); }
```
So apparently this bug has been known for some time (?!?), but has never been fixed.