There were small memory leaks that caused me some problems, so I fixed them.
First one is retain cycle between Ji and JiNode classes. I fixed this with making document object unowned.
Other one is a little bit trivial, while doing a xPath query if there's no nodes in xPathObject, it was returning an empty array without freeing xPathObject. This one is fixed by adding xmlXPathFreeObject before the return call.
There were small memory leaks that caused me some problems, so I fixed them. First one is retain cycle between
Ji
andJiNode
classes. I fixed this with makingdocument
objectunowned
. Other one is a little bit trivial, while doing a xPath query if there's no nodes inxPathObject
, it was returning an empty array without freeingxPathObject
. This one is fixed by addingxmlXPathFreeObject
before the return call.