http://bugs.winehq.org/show_bug.cgi?id=33450
--- Comment #12 from Nikolay Sivov bunglehead@gmail.com 2013-07-01 05:07:35 CDT --- Created attachment 45062 --> http://bugs.winehq.org/attachment.cgi?id=45062 patch
Attached patch fixes it for me, but it's not really a proper fix for at least two reasons:
- it's limited to a case when we have one xmlnode created for xmlNodePtr, so when we have multiple instances for the same node references won't update properly; - the whole idea to move text node to orphans just hides a problem, it allows to cleanly release instances, but doesn't preserve tree structure or content.