There are memory leaks in the latest 3.1.1 Hello World example code:
Code: Select all
MyFrame *frame = new MyFrame();
In the code snippet, frame is not deleted, and ~MyFrame() is not called. I am aware that I'm being pedantic over example code but I'd like to know if there is a good reason to write it this way?