Init fAboutWindow NULL first

This commit is contained in:
John Scipione
2012-11-13 01:29:10 -05:00
parent 83baea76a8
commit 5070e7e222
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -148,13 +148,14 @@ NetworkStatusView::~NetworkStatusView()
void void
NetworkStatusView::_Init() NetworkStatusView::_Init()
{ {
fAboutWindow = NULL;
for (int i = 0; i < kStatusCount; i++) { for (int i = 0; i < kStatusCount; i++) {
fTrayIcons[i] = NULL; fTrayIcons[i] = NULL;
fNotifyIcons[i] = NULL; fNotifyIcons[i] = NULL;
} }
_UpdateBitmaps(); _UpdateBitmaps();
fAboutWindow = NULL;
} }
+1 -1
View File
@@ -16,7 +16,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <Alert.h> #include <AboutWindow.h>
#include <Application.h> #include <Application.h>
#include <Catalog.h> #include <Catalog.h>
#include <ControlLook.h> #include <ControlLook.h>
+2
View File
@@ -15,6 +15,7 @@
#include "DriverInterface.h" #include "DriverInterface.h"
class BAboutWindow;
class BFile; class BFile;
@@ -53,6 +54,7 @@ private:
protected: protected:
PowerStatusDriverInterface* fDriverInterface; PowerStatusDriverInterface* fDriverInterface;
BAboutWindow* fAboutWindow;
bool fShowLabel; bool fShowLabel;
bool fShowTime; bool fShowTime;