Memory leaks are a very serious type of bug that the static analyzer can help you discover. As you can see in the following screenshot, the analyzer has detected a potential memory leak for the instance of
If your project does not release objects which have been declared from memory, you are opening the doors to some serious issues which can affect your application, and make it run out of memory very quickly which may result in your application crashing. We will take a look at an example and add some code to our project to show you how memory leaks occur:
main.mlocated within the
Supporting Filesfolder of your project, and add the following code as shown in the snippet ...