[PATCH 1/5] xmllite/writer: Free finished element data (Valgrind).

Nikolay Sivov nsivov at codeweavers.com
Fri Sep 14 05:06:45 CDT 2018


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/xmllite/writer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/xmllite/writer.c b/dlls/xmllite/writer.c
index aa6ff7f92a..92217b8a4d 100644
--- a/dlls/xmllite/writer.c
+++ b/dlls/xmllite/writer.c
@@ -1221,6 +1221,7 @@ static HRESULT WINAPI xmlwriter_WriteEndElement(IXmlWriter *iface)
         write_output_buffer(This->output, element->qname, element->len);
         write_output_buffer(This->output, gtW, ARRAY_SIZE(gtW));
     }
+    writer_free_element(This, element);
 
     return S_OK;
 }
@@ -1287,6 +1288,8 @@ static HRESULT WINAPI xmlwriter_WriteFullEndElement(IXmlWriter *iface)
     write_output_buffer(This->output, element->qname, element->len);
     write_output_buffer(This->output, gtW, ARRAY_SIZE(gtW));
 
+    writer_free_element(This, element);
+
     return S_OK;
 }
 
-- 
2.18.0




More information about the wine-devel mailing list