Merge pull request #93 from matthew-cline/TOPIC-readSTLString

readSTLString() new/free mismatch fix
develop
Petr Mrázek 2011-07-11 15:13:03 -07:00
commit 2339dcb4b9
1 changed files with 1 additions and 1 deletions

@ -195,7 +195,7 @@ const string NormalProcess::readSTLString (uint32_t offset)
char * temp = new char[header._M_length+1];
read(offset,header._M_length+1,(uint8_t * )temp);
string ret(temp);
delete temp;
delete[] temp;
return ret;
}