Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/View.h b/src/View.h
- index 625c7fc..55a3166 100644
- --- a/src/View.h
- +++ b/src/View.h
- @@ -29,7 +29,14 @@ public:
- m_rightRegion1->SetTransparency(true);
- Gui::Screen::AddBaseWidget(m_rightRegion1, Gui::Screen::GetWidth()-123, Gui::Screen::GetHeight()-62);
- }
- - virtual ~View() { delete m_rightButtonBar; delete m_rightRegion2; }
- + virtual ~View() {
- + Gui::Screen::RemoveBaseWidget(m_rightRegion1);
- + Gui::Screen::RemoveBaseWidget(m_rightRegion2);
- + Gui::Screen::RemoveBaseWidget(m_rightButtonBar);
- + delete m_rightRegion1;
- + delete m_rightRegion2;
- + delete m_rightButtonBar;
- + }
- virtual void ShowAll() {
- m_rightButtonBar->ShowAll();
- m_rightRegion2->ShowAll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement