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 b33de96..f56b0e6 100644
--- a/src/Structure.cpp
+++ b/src/Structure.cpp
@@ -57,7 +57,7 @@ std::string Structure::ToXml() const
57 uint32_t length = 0; 57 uint32_t length = 0;
58 plist_to_xml(_node, &xml, &length); 58 plist_to_xml(_node, &xml, &length);
59 std::string ret(xml, xml+length); 59 std::string ret(xml, xml+length);
60 delete xml; 60 free(xml);
61 return ret; 61 return ret;
62} 62}
63 63
@@ -67,7 +67,7 @@ std::vector<char> Structure::ToBin() const
67 uint32_t length = 0; 67 uint32_t length = 0;
68 plist_to_bin(_node, &bin, &length); 68 plist_to_bin(_node, &bin, &length);
69 std::vector<char> ret(bin, bin+length); 69 std::vector<char> ret(bin, bin+length);
70 delete bin; 70 free(bin);
71 return ret; 71 return ret;
72} 72}
73 73