fix memory leak part 2
parent
c77d3d9a0c
commit
b287aed6cc
|
@ -44,6 +44,14 @@ int main()
|
|||
#endif
|
||||
|
||||
printf("\n\n");
|
||||
|
||||
delete button;
|
||||
delete lampCmd;
|
||||
delete fanCmd;
|
||||
delete button2;
|
||||
delete lampCmd2;
|
||||
delete fanCmd2;
|
||||
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
|
@ -33,6 +33,9 @@ int main()
|
|||
handler->setInput(input_13); handler->handle();
|
||||
|
||||
printf("\n\n");
|
||||
delete handler;
|
||||
|
||||
system("pause");
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -31,5 +31,8 @@ int main()
|
|||
|
||||
printf("\n\n");
|
||||
system("pause");
|
||||
|
||||
delete tv;
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -34,5 +34,13 @@ int main()
|
|||
|
||||
printf("\n\n");
|
||||
system("pause");
|
||||
|
||||
delete mediator;
|
||||
delete fangdong1;
|
||||
delete fangdong2;
|
||||
delete fangdong3;
|
||||
delete jungle;
|
||||
delete jianmengtu;
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -40,5 +40,9 @@ int main()
|
|||
|
||||
printf("\n\n");
|
||||
system("pause");
|
||||
|
||||
delete Jungle;
|
||||
delete codeVer;
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -28,5 +28,12 @@ int main()
|
|||
|
||||
printf("\n\n");
|
||||
system("pause");
|
||||
|
||||
delete controller;
|
||||
delete Jungle;
|
||||
delete Single;
|
||||
delete Jianmengtu;
|
||||
delete SillyDog;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue