From 3a9e43f6bb5394e4d368359d79cbcb49fa94560d Mon Sep 17 00:00:00 2001 From: Qiangguo Feng <32355651+FengJungle@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:29:59 +0800 Subject: [PATCH] Fix free jungleModel twice bug. --- 05.PrototypePattern/2.Code/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/05.PrototypePattern/2.Code/main.cpp b/05.PrototypePattern/2.Code/main.cpp index cdd8047..168c672 100644 --- a/05.PrototypePattern/2.Code/main.cpp +++ b/05.PrototypePattern/2.Code/main.cpp @@ -50,7 +50,6 @@ int main() system("pause"); delete singleWork; - delete jungleModel; delete jungleWork; return 0; -} \ No newline at end of file +}