User forums > Using Code::Blocks
Memory Leak?
(1/1)
spflanze:
I followed this tutorial to its end:
http://wiki.codeblocks.org/index.php/WxSmith_tutorial:_Working_with_multiple_resources
At the bottom of this tutorial there are instructions to add this code:
--- Code: ---void Tutorial_4Frame::OnButton2Click(wxCommandEvent& event)
{
FirstDialog* dlg = new FirstDialog(this);
dlg->Show();
}
void Tutorial_4Frame::OnButton3Click(wxCommandEvent& event)
{
FirstFrame* frm = new FirstFrame(this);
frm->Show();
}
--- End code ---
I cannot find where in the code the dlg and frm objects are deleted. Does this project created according to this tutorial's instructions leak memory?
ollydbg:
c++ - Why wxWidgets never calls delete after calling new? - Stack Overflow
Navigation
[0] Message Index
Go to full version