From 300b0d6897c31b9250dd6a60746646b036986983 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 5 Aug 2013 22:23:17 +0000 Subject: fix for massive memory leak in json parser git-svn-id: http://svn.miranda-ng.org/main/trunk@5593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/json/internalJSONNode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mir_core/json/internalJSONNode.h') diff --git a/src/mir_core/json/internalJSONNode.h b/src/mir_core/json/internalJSONNode.h index 8832bbd828..9ed7680a45 100644 --- a/src/mir_core/json/internalJSONNode.h +++ b/src/mir_core/json/internalJSONNode.h @@ -81,7 +81,7 @@ public: bool empty(void) const; unsigned char type(void) const; - json_string name(void) const; + const json_char* name(void) const; void setname(const json_string & newname); #ifdef JSON_COMMENTS void setcomment(const json_string & comment); @@ -260,8 +260,8 @@ inline unsigned char internalJSONNode::type(void) const { #endif } -inline json_string internalJSONNode::name(void) const { - return _name; +inline const json_char* internalJSONNode::name(void) const { + return _name.c_str(); } inline void internalJSONNode::setname(const json_string & newname){ -- cgit v1.2.3