From 2de6603f69b343c3245043ab4c05292a617bd9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 28 Nov 2014 12:58:45 +0000 Subject: Use JSONROOT everywhere to simplify code and fix memleaks (in Dropbox and Steam) git-svn-id: http://svn.miranda-ng.org/main/trunk@11130 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_commands.cpp') diff --git a/plugins/Dropbox/src/dropbox_commands.cpp b/plugins/Dropbox/src/dropbox_commands.cpp index ef0a84b370..e83988ff0c 100644 --- a/plugins/Dropbox/src/dropbox_commands.cpp +++ b/plugins/Dropbox/src/dropbox_commands.cpp @@ -34,7 +34,7 @@ void CDropbox::CommandContent(void *arg) { CMStringA message; - JSONNODE *root = json_parse(response->pData); + JSONROOT root(response->pData); if (root) { JSONNODE *node = json_get(root, "is_dir"); @@ -91,7 +91,7 @@ void CDropbox::CommandShare(void *arg) { CMStringA link; - JSONNODE *root = json_parse(response->pData); + JSONROOT root(response->pData); if (root) { JSONNODE *node = json_get(root, "url"); @@ -136,7 +136,7 @@ void CDropbox::CommandDelete(void *arg) if (response && response->resultCode == HTTP_STATUS_OK) { - JSONNODE *root = json_parse(response->pData); + JSONROOT root(response->pData); if (root) { JSONNODE *node = json_get(root, "is_deleted"); -- cgit v1.2.3