Fixed leak in MString when assigning from another MString.
This commit is contained in:
1 parent
423af4eb52
commit
b44a00862b
31 files changed
+268
-4807
No files matched your search
@@ -46,7 +46,6 @@ namespace coreutils {
|
||||
data = zstring.data;
|
||||
length = zstring.length;
|
||||
cursor = zstring.cursor;
|
||||
// Log(LOG_DEBUG_2) << "ZString Copy Constructor: ";
|
||||
}
|
||||
|
||||
ZString::ZString(std::string &data) {
|
||||
@@ -55,12 +54,6 @@ namespace coreutils {
|
||||
cursor = (char *)data.c_str();
|
||||
}
|
||||
|
||||
// ZString::ZString(std::string data) {
|
||||
// this->data = (char *)data.c_str();
|
||||
// length = data.length();
|
||||
// cursor = (char *)data.c_str();
|
||||
// }
|
||||
|
||||
ZString::~ZString() {
|
||||
if(cdata != NULL)
|
||||
free(cdata);
|
||||
|
||||
Reference in new issue
Block a user