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:
@ -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>
|
Fri Mar 15 23:21:40 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* libxml.spec.in python/Makefile.am python/tests/Makefile.am
|
* libxml.spec.in python/Makefile.am python/tests/Makefile.am
|
||||||
|
@ -56,7 +56,7 @@ GENERATED= $(srcdir)/libxml2class.py \
|
|||||||
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
||||||
cd $(srcdir) && $(PYTHON) $(GENERATE)
|
cd $(srcdir) && $(PYTHON) $(GENERATE)
|
||||||
|
|
||||||
$(libxmlmodule_la_OBJECTS): $(GENERATED)
|
$(libxml2mod_la_OBJECTS): $(GENERATED)
|
||||||
else
|
else
|
||||||
all:
|
all:
|
||||||
endif
|
endif
|
||||||
|
2
xpath.c
2
xpath.c
@ -3071,8 +3071,8 @@ xmlXPathFreeObject(xmlXPathObjectPtr obj) {
|
|||||||
if ((obj->type == XPATH_NODESET) || (obj->type == XPATH_XSLT_TREE)) {
|
if ((obj->type == XPATH_NODESET) || (obj->type == XPATH_XSLT_TREE)) {
|
||||||
if (obj->boolval) {
|
if (obj->boolval) {
|
||||||
if (obj->user != NULL) {
|
if (obj->user != NULL) {
|
||||||
xmlFreeNodeList((xmlNodePtr) obj->user);
|
|
||||||
xmlXPathFreeNodeSet(obj->nodesetval);
|
xmlXPathFreeNodeSet(obj->nodesetval);
|
||||||
|
xmlFreeNodeList((xmlNodePtr) obj->user);
|
||||||
} else if (obj->nodesetval != NULL)
|
} else if (obj->nodesetval != NULL)
|
||||||
xmlXPathFreeValueTree(obj->nodesetval);
|
xmlXPathFreeValueTree(obj->nodesetval);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user