add AutoDelete structfunction

This commit is contained in:
2020-07-23 18:25:02 +08:00
parent 0e9bb594d7
commit 95f8e803d3

View File

@@ -462,6 +462,11 @@ namespace hgl
public:
AutoDelete()
{
obj=nullptr;
}
AutoDelete(T *o)
{
obj=o;