-rw-r--r-- | noncore/net/mail/taskbarapplet/mailapplet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailapplet.cpp b/noncore/net/mail/taskbarapplet/mailapplet.cpp index f81dce8..31d5bfe 100644 --- a/noncore/net/mail/taskbarapplet/mailapplet.cpp +++ b/noncore/net/mail/taskbarapplet/mailapplet.cpp | |||
@@ -35,6 +35,8 @@ MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl ) | |||
35 | 35 | ||
36 | hide(); | 36 | hide(); |
37 | 37 | ||
38 | m_statusMail = 0; | ||
39 | |||
38 | connect( this, SIGNAL( clicked() ), SLOT( slotClicked() ) ); | 40 | connect( this, SIGNAL( clicked() ), SLOT( slotClicked() ) ); |
39 | 41 | ||
40 | if ( !m_config->readBoolEntry( "Disabled", false ) ) { | 42 | if ( !m_config->readBoolEntry( "Disabled", false ) ) { |
@@ -49,7 +51,7 @@ MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl ) | |||
49 | } | 51 | } |
50 | 52 | ||
51 | MailApplet::~MailApplet() { | 53 | MailApplet::~MailApplet() { |
52 | delete m_statusMail; | 54 | if (m_statusMail) delete m_statusMail; |
53 | } | 55 | } |
54 | 56 | ||
55 | void MailApplet::drawButton(QPainter *) { } | 57 | void MailApplet::drawButton(QPainter *) { } |