1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

small fix to avoid potential problem due to ordering of freeing data

* xpath.c: small fix to avoid potential problem due to
  ordering of freeing data
* python/Makefile.am: people were complaining about
  the generated file in python dir not being built
Daniel
This commit is contained in:
Daniel Veillard
2002-03-16 22:03:31 +00:00
parent d2379010b1
commit 38bf6f0425
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
Sat Mar 16 23:01:42 CET 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: small fix to avoid potential problem due to
ordering of freeing data
* python/Makefile.am: people were complaining about
the generated file in python dir not being built
Fri Mar 15 23:21:40 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxml.spec.in python/Makefile.am python/tests/Makefile.am

View File

@ -56,7 +56,7 @@ GENERATED= $(srcdir)/libxml2class.py \
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
cd $(srcdir) && $(PYTHON) $(GENERATE)
$(libxmlmodule_la_OBJECTS): $(GENERATED)
$(libxml2mod_la_OBJECTS): $(GENERATED)
else
all:
endif

View File

@ -3071,8 +3071,8 @@ xmlXPathFreeObject(xmlXPathObjectPtr obj) {
if ((obj->type == XPATH_NODESET) || (obj->type == XPATH_XSLT_TREE)) {
if (obj->boolval) {
if (obj->user != NULL) {
xmlFreeNodeList((xmlNodePtr) obj->user);
xmlXPathFreeNodeSet(obj->nodesetval);
xmlFreeNodeList((xmlNodePtr) obj->user);
} else if (obj->nodesetval != NULL)
xmlXPathFreeValueTree(obj->nodesetval);
} else {