Fixed leak in MString when assigning from another MString.

This commit is contained in:
Brad Arant committed 2023-10-07 18:04:23 -07:00
1 parent 423af4eb52
commit b44a00862b
31 files changed
+268 -4807

No files matched your search

+3 -22
View File
@@ -7,8 +7,7 @@
#include <string>
#include <vector>
namespace coreutils
{
namespace coreutils {
///
/// Use the ZString object when advanced parsing algorithms are required to simplify
@@ -32,8 +31,7 @@ namespace coreutils
/// contents of the ZString will be output regardless of parsing activity.
///
class ZString
{
class ZString {
public:
///
@@ -372,7 +370,7 @@ namespace coreutils
bool ifCRLF();
void nextChar();
// void nextChar();
protected:
char *data;
@@ -380,26 +378,9 @@ namespace coreutils
size_t length;
char *cdata = NULL;
std::vector<ZString> list;
///
///
///
bool boolValue();
///
///
///
void nextChar();
protected:
char *data;
char *cursor;
size_t length;
char *cdata = NULL;
std::vector<ZString> list;
private:
std::stack<char *> stack;
bool isCharacter(char ch, const char *string);