Commit e18e6358 by xiaotong

fix the bug in deleting XLink::params

parent 68e146a6
......@@ -114,7 +114,7 @@ void XLink::ClearOutgoing(XTensor * node)
outgo.ClearTail();
outgo.typeID = 0;
outgo.type[0] = 0;
delete[] outgo.params;
delete[] (char*)outgo.params;
outgo.params = NULL;
}
......@@ -154,7 +154,7 @@ void XLink::ClearIncoming(XTensor * node)
income.ClearTail();
income.typeID = 0;
income.type[0] = 0;
delete[] income.params;
delete[] (char*)income.params;
income.params = NULL;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论