memory leaks when program is closed with x

前端 未结 3 910
时光取名叫无心
时光取名叫无心 2021-01-25 05:57

Might be a stupid question, but if I create a console-application that dynamicly creates object and such, I make sure to free the memmory at shutdown. What happens if a user clo

3条回答
  •  悲哀的现实
    2021-01-25 06:34

    The application will simply be killed. In this case, memory leaks don't really happen since the OS do the cleanup for you.

提交回复
热议问题