bugfix: fix memory leak issue

master
FengJungle 2021-10-13 23:10:44 +08:00
parent a55f692048
commit 40a2c486d5
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class Iterator
{
public:
Iterator(){}
virtual ~Iterator(){}
// 声明抽象遍历方法
virtual void first() = 0;
virtual void last() = 0;

View File

@ -33,6 +33,7 @@ int main()
system("pause");
delete tv;
delete remoteControl;
return 0;
}