polotek/libxmljs — pull request #151 by triccardi-systran (2012-07-18 17:34:21+00:00)
Title: Memory leaks

These commits fixes several memory leaks.

The only non trivial one is 4e3755cffbd2d7f571c04ff69dee6ea38761836e:
The *xmlNode* are only freed when linked to a document (more precisely part of a xml tree whose *xmlNode* root is the root of a tracked document.)
In the other cases the *xmlNode* memory leaks.
I fixed this by checking if the node has a *parent*, but I'm not sure if this covers every case.