Memory leak in gtkmm/demos/gtk-demo/example_dialog.cc?

The interactive dialog has two ways of closing: click on one the two buttons or close the window with the button at the top right corner. Clicking on ‘OK’ or ‘Cancel’ calls the response handler which ultimately deletes the pointer to the dialog. What happens to the memory when you close the window with the button at the top right corner?

You’re right. There is (was) a possible memory leak here. I have pushed a fix.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.