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

View File

@ -148,13 +148,14 @@ NetworkStatusView::~NetworkStatusView()
void
NetworkStatusView::_Init()
{
fAboutWindow = NULL;
for (int i = 0; i < kStatusCount; i++) {
fTrayIcons[i] = NULL;
fNotifyIcons[i] = NULL;
}
_UpdateBitmaps();
fAboutWindow = NULL;
}

View File

@ -16,7 +16,7 @@
#include <string.h>
#include <unistd.h>
#include <Alert.h>
#include <AboutWindow.h>
#include <Application.h>
#include <Catalog.h>
#include <ControlLook.h>

View File

@ -15,6 +15,7 @@
#include "DriverInterface.h"
class BAboutWindow;
class BFile;
@ -53,6 +54,7 @@ private:
protected:
PowerStatusDriverInterface* fDriverInterface;
BAboutWindow* fAboutWindow;
bool fShowLabel;
bool fShowTime;