From aa498f13908176780921e866f6f933312295f26b Mon Sep 17 00:00:00 2001 From: Qiangguo Feng <32355651+FengJungle@users.noreply.github.com> Date: Sat, 9 Oct 2021 13:38:52 +0800 Subject: [PATCH] bugfix:set pointer to nullptr --- 13.ProxyPattern/2.Code/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/13.ProxyPattern/2.Code/main.cpp b/13.ProxyPattern/2.Code/main.cpp index b563585..8920ac2 100644 --- a/13.ProxyPattern/2.Code/main.cpp +++ b/13.ProxyPattern/2.Code/main.cpp @@ -10,7 +10,8 @@ int main() printf("\n\n"); delete subject; + subject = nullptr; system("pause"); return 0; -} \ No newline at end of file +}