author | harlekin <harlekin> | 2004-01-05 16:22:01 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-01-05 16:22:01 (UTC) |
commit | 642fd965cca78fe4398cbe12afcd15cd2f2257ad (patch) (side-by-side diff) | |
tree | 6fe94acc252dca7aed314e439ad6603b676ff149 | |
parent | 9acbe167d22cf1bed17a0361fdcdadf7581d8127 (diff) | |
download | opie-642fd965cca78fe4398cbe12afcd15cd2f2257ad.zip opie-642fd965cca78fe4398cbe12afcd15cd2f2257ad.tar.gz opie-642fd965cca78fe4398cbe12afcd15cd2f2257ad.tar.bz2 |
prevent segfaults
-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 @@ -36,4 +36,6 @@ MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl ) hide(); + m_statusMail = 0; + connect( this, SIGNAL( clicked() ), SLOT( slotClicked() ) ); @@ -50,5 +52,5 @@ MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl ) MailApplet::~MailApplet() { - delete m_statusMail; + if (m_statusMail) delete m_statusMail; } |