fix memory leak part 2

master
FengJungle 2020-11-29 11:17:40 +08:00
parent c77d3d9a0c
commit b287aed6cc
6 changed files with 33 additions and 0 deletions

View File

@ -44,6 +44,14 @@ int main()
#endif #endif
printf("\n\n"); printf("\n\n");
delete button;
delete lampCmd;
delete fanCmd;
delete button2;
delete lampCmd2;
delete fanCmd2;
system("pause"); system("pause");
return 0; return 0;
} }

View File

@ -33,6 +33,9 @@ int main()
handler->setInput(input_13); handler->handle(); handler->setInput(input_13); handler->handle();
printf("\n\n"); printf("\n\n");
delete handler;
system("pause"); system("pause");
return 0; return 0;
} }

View File

@ -31,5 +31,8 @@ int main()
printf("\n\n"); printf("\n\n");
system("pause"); system("pause");
delete tv;
return 0; return 0;
} }

View File

@ -34,5 +34,13 @@ int main()
printf("\n\n"); printf("\n\n");
system("pause"); system("pause");
delete mediator;
delete fangdong1;
delete fangdong2;
delete fangdong3;
delete jungle;
delete jianmengtu;
return 0; return 0;
} }

View File

@ -40,5 +40,9 @@ int main()
printf("\n\n"); printf("\n\n");
system("pause"); system("pause");
delete Jungle;
delete codeVer;
return 0; return 0;
} }

View File

@ -28,5 +28,12 @@ int main()
printf("\n\n"); printf("\n\n");
system("pause"); system("pause");
delete controller;
delete Jungle;
delete Single;
delete Jianmengtu;
delete SillyDog;
return 0; return 0;
} }