Ticket #1852: memleak-sectionlayout.patch
File memleak-sectionlayout.patch, 787 bytes (added by , 11 years ago) |
---|
-
trunk/source/tools/atlas/AtlasUI/ScenarioEditor/SectionLayout.cpp
a b 250 250 ////////////////////////////////////////////////////////////////////////// 251 251 252 252 SectionLayout::SectionLayout() 253 : m_SidebarBook(NULL), m_HorizSplitter(NULL), m_VertSplitter(NULL) 253 254 { 254 255 } 255 256 256 257 SectionLayout::~SectionLayout() 257 258 { 259 delete m_SidebarBook; 260 delete m_HorizSplitter; 261 delete m_VertSplitter; 258 262 } 259 263 260 264 void SectionLayout::SetWindow(wxWindow* window) 261 265 { 266 delete m_HorizSplitter; 262 267 m_HorizSplitter = new SnapSplitterWindow(window, wxSP_NOBORDER); 268 269 delete m_VertSplitter; 263 270 m_VertSplitter = new SnapSplitterWindow(m_HorizSplitter, wxSP_3D); 264 271 } 265 272