mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 10:57:34 +08:00
fixed bugs in xml parser
This commit is contained in:
parent
d43dfc6051
commit
3b76cccb18
@ -1,6 +1,11 @@
|
||||
修改历史列表:
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
388) 2015.12.14
|
||||
388.1) bugfix: xml1/xml2 类中的方法 reset 应该将 root_ 节点删除,因为调用
|
||||
acl_xml_reset/acl_xml2_reset 后 xml 对象中 root 节点被释放,此时 root_ 节点
|
||||
所引用的根节点已经不存在
|
||||
|
||||
387) 2015.12.9
|
||||
387.1) bugfix: db_mysql 类中,在初始 mysql 连接时,因为 libmysqlclient 库内部
|
||||
会通过 mysql_thread_init 初始化每个线程的线程局部变量,但却不会在线程退出前自
|
||||
|
@ -521,6 +521,8 @@ const char* xml1::to_string(size_t* len /* = NULL */) const
|
||||
void xml1::reset(void)
|
||||
{
|
||||
clear();
|
||||
delete root_;
|
||||
root_ = NULL;
|
||||
acl_xml_reset(xml_);
|
||||
//dummyRootAdded_ = false;
|
||||
}
|
||||
|
@ -490,6 +490,8 @@ const char* xml2::to_string(size_t* len /* = NULL */) const
|
||||
void xml2::reset(void)
|
||||
{
|
||||
clear();
|
||||
delete root_;
|
||||
root_ = NULL;
|
||||
acl_xml2_reset(xml_);
|
||||
//dummyRootAdded_ = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user