fix possible crash in textContent

This commit is contained in:
Rob Richards 2006-01-25 17:34:05 +00:00
parent 8fde2249c3
commit ec605ac2ad

View File

@ -840,10 +840,10 @@ int dom_node_text_content_read(dom_object *obj, zval **retval TSRMLS_DC)
if(str != NULL) {
ZVAL_STRING(*retval, str, 1);
xmlFree(str);
} else {
ZVAL_EMPTY_STRING(*retval);
}
xmlFree(str);
return SUCCESS;
}