Important Update:
- Remove unused: FunctionCore-ChannelBuffer - DataTreeCore: - Bug fix: Set Len=0 on element Clear() - SelectableBare/Core: - Move move BuildArgs() to SelectableBare - Make OutputHandle() to virtual method - UtilCore: - Bug fix: Handle NoCrLF correctly in BytesToSafeStr()
This commit is contained in:
@@ -131,10 +131,8 @@ CDataMember * CDataMember::CreateChild( const char * Name, const int Len )
|
||||
bool CDataMember::Clear()
|
||||
{
|
||||
// Clear value
|
||||
if (Value) {
|
||||
if (Value)
|
||||
free( Value );
|
||||
Value = NULL;
|
||||
}
|
||||
|
||||
// Clear children
|
||||
while (FirstChild) {
|
||||
@@ -142,7 +140,9 @@ bool CDataMember::Clear()
|
||||
}
|
||||
|
||||
// Reset value
|
||||
Type = jtNull;
|
||||
Type = jtNull;
|
||||
Value = NULL;
|
||||
Len = 0;
|
||||
return true;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user