bugfix: fix memory leak issue
parent
a55f692048
commit
40a2c486d5
|
@ -12,6 +12,7 @@ class Iterator
|
|||
{
|
||||
public:
|
||||
Iterator(){}
|
||||
virtual ~Iterator(){}
|
||||
// 声明抽象遍历方法
|
||||
virtual void first() = 0;
|
||||
virtual void last() = 0;
|
||||
|
|
|
@ -33,6 +33,7 @@ int main()
|
|||
system("pause");
|
||||
|
||||
delete tv;
|
||||
delete remoteControl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue