Permalink
Browse files

* Use weak reference to free data properly and prevent memory leak.

  • Loading branch information...
1 parent efd7618 commit 0963ecfd0c2c8c5b13baa2db970f903606480b27 @mremec committed Oct 20, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 OmniXML.pas
View
@@ -641,7 +641,7 @@ TXMLProcessingInstruction = class;
TXMLNode = class(TInterfacedObject, IXMLNode)
protected
- FOwnerDocument: TXMLDocument;
+ {$IFDEF AUTOREFCOUNT} [weak] {$ENDIF} FOwnerDocument: TXMLDocument;
FNodeType: TNodeType;
FAttributes: IXMLNamedNodeMap;
FChildNodes: IXMLNodeList;

0 comments on commit 0963ecf

Please sign in to comment.