Module: wine Branch: master Commit: 5f548d2af39a41536468f570ed0aa3ada7080a84 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5f548d2af39a41536468f570e...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Sep 14 13:06:45 2018 +0300
xmllite/writer: Free finished element data (Valgrind).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/xmllite/writer.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/xmllite/writer.c b/dlls/xmllite/writer.c index aa6ff7f..92217b8 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; }