Powerino73 / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 0 forks source link

static wxBitmap* lead to memory leak #306

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1)TreeCanvas.cpp 
static wxBitmap* bmp_branch_plus = NULL; nine like this
not delete before destroy. VS2008 always say "memory leak".
and this problem also occured in 
virtual const wxBitmap &GetIcon(); a function of class HeeksObj
2)ConversionTools.cpp
void GetConversionMenuTools(std::list<Tool*>* t_list)
 ... t_list->push_back(new MakeLineArcsToSketch); not delete 
five like this. 
3)popmenu also has memory leak just like use wxBitmap* new
4)and there are many many memory leak when drawing,I will try to find these 
codes.
5)about the application crash when exit or switching file.I find the flyout 
toolbars may the reason. AddToolBarFlyout function.

Original issue reported on code.google.com by anqiu...@163.com on 12 Sep 2010 at 1:25

GoogleCodeExporter commented 8 years ago
Windows XP SP3
VS C++ 2008  

Original comment by anqiu...@163.com on 12 Sep 2010 at 1:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
about popmenu:
1) HeeksCADapp::DoDropDownMenu() function
   new CFullScreenTool
2) HeeksCADapp::GetTools() function
   new MarkObjectTool
   new ToolList

not delete lead to memory leaks

Original comment by anqiu...@163.com on 27 Sep 2010 at 4:23

GoogleCodeExporter commented 8 years ago

Original comment by neomil...@gmail.com on 28 Jun 2014 at 5:00

GoogleCodeExporter commented 8 years ago

Original comment by neomil...@gmail.com on 10 Mar 2015 at 11:03