[haiku-commits] haiku: hrev44845 - src/apps/deskbar

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 16 Nov 2012 01:41:16 +0100 (CET)

hrev44845 adds 2 changesets to branch 'master'
old head: c3eddfc0682b99f28ddbe33a14dadc40dc5b5f71
new head: 6c54ebe5d51733f614ee989c068b90fef4604273

----------------------------------------------------------------------------

c6bc755: delete fBarMenuBar on destruction preventing memory leak

6c54ebe: Set fSeparatorItem NULL initially fixing #9151 on gcc4

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 3 insertions(+), 1 deletion(-)
src/apps/deskbar/BarMenuBar.cpp | 3 ++-
src/apps/deskbar/BarView.cpp    | 1 +

############################################################################

Commit:      c6bc755d6cf6c23dabf835e44a119631d6d72f39
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c6bc755
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Fri Nov 16 00:38:14 2012 UTC

delete fBarMenuBar on destruction preventing memory leak

----------------------------------------------------------------------------

diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp
index 07f2878..6f89271 100644
--- a/src/apps/deskbar/BarView.cpp
+++ b/src/apps/deskbar/BarView.cpp
@@ -160,6 +160,7 @@ TBarView::~TBarView()
 {
        delete fDragMessage;
        delete fCachedTypesList;
+       delete fBarMenuBar;
 
        RemoveExpandedItems();
 }

############################################################################

Revision:    hrev44845
Commit:      6c54ebe5d51733f614ee989c068b90fef4604273
URL:         http://cgit.haiku-os.org/haiku/commit/?id=6c54ebe
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Fri Nov 16 00:39:04 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/9151

Set fSeparatorItem NULL initially fixing #9151 on gcc4

----------------------------------------------------------------------------

diff --git a/src/apps/deskbar/BarMenuBar.cpp b/src/apps/deskbar/BarMenuBar.cpp
index 173b5d9..1383bd6 100644
--- a/src/apps/deskbar/BarMenuBar.cpp
+++ b/src/apps/deskbar/BarMenuBar.cpp
@@ -56,7 +56,8 @@ const float kSepItemWidth = 5.0f;
 TBarMenuBar::TBarMenuBar(TBarView* bar, BRect frame, const char* name)
        : BMenuBar(frame, name, B_FOLLOW_NONE, B_ITEMS_IN_ROW, false),
        fBarView(bar),
-       fAppListMenuItem(NULL)
+       fAppListMenuItem(NULL),
+       fSeparatorItem(NULL)
 {
        SetItemMargins(0.0f, 0.0f, 0.0f, 0.0f);
 


Other related posts:

  • » [haiku-commits] haiku: hrev44845 - src/apps/deskbar - jscipione