Advertisement
robn

Untitled

Oct 9th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. diff --git a/src/View.h b/src/View.h
  2. index 625c7fc..55a3166 100644
  3. --- a/src/View.h
  4. +++ b/src/View.h
  5. @@ -29,7 +29,14 @@ public:
  6. m_rightRegion1->SetTransparency(true);
  7. Gui::Screen::AddBaseWidget(m_rightRegion1, Gui::Screen::GetWidth()-123, Gui::Screen::GetHeight()-62);
  8. }
  9. - virtual ~View() { delete m_rightButtonBar; delete m_rightRegion2; }
  10. + virtual ~View() {
  11. + Gui::Screen::RemoveBaseWidget(m_rightRegion1);
  12. + Gui::Screen::RemoveBaseWidget(m_rightRegion2);
  13. + Gui::Screen::RemoveBaseWidget(m_rightButtonBar);
  14. + delete m_rightRegion1;
  15. + delete m_rightRegion2;
  16. + delete m_rightButtonBar;
  17. + }
  18. virtual void ShowAll() {
  19. m_rightButtonBar->ShowAll();
  20. m_rightRegion2->ShowAll();
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement