I made a simple/default wxWidgets project that is dialog based. The project uses wxSmith for the GUI editing.
When I run the app through valgrind I get many leaks/possible leaks (see the log below).
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|5 bytes in 1 blocks are possibly lost in loss record 13 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|6 bytes in 1 blocks are possibly lost in loss record 22 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|6 bytes in 1 blocks are possibly lost in loss record 23 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|7 bytes in 1 blocks are possibly lost in loss record 27 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|7 bytes in 1 blocks are possibly lost in loss record 28 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 107 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 108 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 109 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 110 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 111 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 112 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|8 bytes in 1 blocks are possibly lost in loss record 113 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|10 bytes in 1 blocks are possibly lost in loss record 131 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|16 bytes in 1 blocks are possibly lost in loss record 571 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|20 bytes in 3 blocks are possibly lost in loss record 609 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|24 bytes in 1 blocks are possibly lost in loss record 751 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|24 bytes in 1 blocks are possibly lost in loss record 752 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|40 bytes in 1 blocks are possibly lost in loss record 932 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|40 bytes in 1 blocks are possibly lost in loss record 947 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|48 bytes in 1 blocks are possibly lost in loss record 977 of 1,702|
/usr/include/wx-2.8/wx/toplevel.h||In function 'wxTopLevelWindow::~wxTopLevelWindow()' :|
/usr/include/wx-2.8/wx/toplevel.h|353|64 bytes in 1 blocks are possibly lost in loss record 1,056 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|66 bytes in 11 blocks are possibly lost in loss record 1,059 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|66 bytes in 11 blocks are possibly lost in loss record 1,059 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|66 bytes in 11 blocks are possibly lost in loss record 1,060 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|66 bytes in 11 blocks are possibly lost in loss record 1,060 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|83 bytes in 11 blocks are possibly lost in loss record 1,300 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|83 bytes in 11 blocks are possibly lost in loss record 1,300 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|88 bytes in 11 blocks are possibly lost in loss record 1,409 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|88 bytes in 11 blocks are possibly lost in loss record 1,409 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|96 bytes in 1 blocks are possibly lost in loss record 1,423 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|100 bytes in 3 blocks are possibly lost in loss record 1,426 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|103 bytes in 3 blocks are possibly lost in loss record 1,427 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|112 bytes in 1 blocks are possibly lost in loss record 1,436 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|120 bytes in 3 blocks are possibly lost in loss record 1,442 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|120 bytes in 3 blocks are possibly lost in loss record 1,443 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,454 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,455 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,458 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,459 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,460 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,461 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,462 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|128 bytes in 1 blocks are possibly lost in loss record 1,463 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|28|144 bytes in 1 blocks are possibly lost in loss record 1,480 of 1,702|
/usr/include/wx-2.8/wx/app.h||In function 'wxAppConsole::CallOnInit()' :|
/usr/include/wx-2.8/wx/app.h|76|144 bytes in 1 blocks are possibly lost in loss record 1,480 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|144 bytes in 6 blocks are possibly lost in loss record 1,481 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|160 bytes in 1 blocks are possibly lost in loss record 1,488 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|181 bytes in 11 blocks are possibly lost in loss record 1,503 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|181 bytes in 11 blocks are possibly lost in loss record 1,503 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|181 bytes in 11 blocks are possibly lost in loss record 1,504 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|181 bytes in 11 blocks are possibly lost in loss record 1,504 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h||In function 'wxdialog_leaksApp::wxdialog_leaksApp()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h|16|240 bytes in 1 blocks are possibly lost in loss record 1,537 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h||In function 'wxdialog_leaksApp::wxdialog_leaksApp()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h|16|240 bytes in 1 blocks are possibly lost in loss record 1,538 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|440 bytes in 11 blocks are possibly lost in loss record 1,562 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|440 bytes in 11 blocks are possibly lost in loss record 1,562 of 1,702|
/usr/include/wx-2.8/wx/app.h||In function 'wxAppConsole::CallOnInit()' :|
/usr/include/wx-2.8/wx/app.h|76|440 bytes in 11 blocks are possibly lost in loss record 1,562 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|448 bytes in 1 blocks are possibly lost in loss record 1,569 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|545 bytes in 11 blocks are possibly lost in loss record 1,585 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|545 bytes in 11 blocks are possibly lost in loss record 1,585 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|545 bytes in 11 blocks are possibly lost in loss record 1,586 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|768 bytes in 1 blocks are possibly lost in loss record 1,594 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|1,008 bytes in 1 blocks are possibly lost in loss record 1,619 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|1,020 bytes in 1 blocks are possibly lost in loss record 1,629 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h||In function 'wxdialog_leaksApp::wxdialog_leaksApp()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.h|16|1,488 bytes in 3 blocks are possibly lost in loss record 1,645 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp||In function 'wxdialog_leaksDialog::wxdialog_leaksDialog(wxWindow*, int)' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksMain.cpp|55|1,488 bytes in 3 blocks are possibly lost in loss record 1,646 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'wxdialog_leaksApp::OnInit()' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|26|1,488 bytes in 3 blocks are possibly lost in loss record 1,646 of 1,702|
/usr/include/wx-2.8/wx/app.h||In function 'wxAppConsole::CallOnInit()' :|
/usr/include/wx-2.8/wx/app.h|76|1,488 bytes in 3 blocks are possibly lost in loss record 1,646 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|1,488 bytes in 3 blocks are possibly lost in loss record 1,646 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|1,536 bytes in 1 blocks are possibly lost in loss record 1,651 of 1,702|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp||In function 'main' :|
/home/obfuscated/projects/tests/wxdialog_leaks/wxdialog_leaksApp.cpp|17|1,984 bytes in 1 blocks are possibly lost in loss record 1,657 of 1,702|