summaryrefslogtreecommitdiffstats
path: root/src/Structure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Structure.cpp')
-rw-r--r--src/Structure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Structure.cpp b/src/Structure.cpp
index 9445c23..4be4e7d 100644
--- a/src/Structure.cpp
+++ b/src/Structure.cpp
@@ -56,7 +56,7 @@ std::string Structure::ToXml() const
56 uint32_t length = 0; 56 uint32_t length = 0;
57 plist_to_xml(_node, &xml, &length); 57 plist_to_xml(_node, &xml, &length);
58 std::string ret(xml, xml+length); 58 std::string ret(xml, xml+length);
59 free(xml); 59 delete xml;
60 return ret; 60 return ret;
61} 61}
62 62
@@ -66,7 +66,7 @@ std::vector<char> Structure::ToBin() const
66 uint32_t length = 0; 66 uint32_t length = 0;
67 plist_to_bin(_node, &bin, &length); 67 plist_to_bin(_node, &bin, &length);
68 std::vector<char> ret(bin, bin+length); 68 std::vector<char> ret(bin, bin+length);
69 free(bin); 69 delete bin;
70 return ret; 70 return ret;
71} 71}
72 72