[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/arts/knotify
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2004-12-15 11:04:01
Message-ID: 20041215110401.ECED71C27D () office ! kde ! org
[Download RAW message or body]

CVS commit by carewolf: 

Don't crash when being restarted
BUG: 91497


  M +3 -2      knotify.cpp   1.95


--- kdelibs/arts/knotify/knotify.cpp  #1.94:1.95
@@ -89,5 +89,5 @@ public:
 // Yes, it's ugly to put this here, but this facilitates the cautious startup
 // procedure.
-KArtsServer *soundServer;
+KArtsServer *soundServer = 0;
 
 extern "C"{
@@ -204,5 +204,5 @@ KDE_EXPORT int kdemain(int argc, char **
 
     // start notify service
-    KNotify notify( useArts );
+    KNotify *notify = new KNotify( useArts );
 
     config.writeEntry( "KNotify Init", true );
@@ -214,4 +214,5 @@ KDE_EXPORT int kdemain(int argc, char **
 
     int ret = app.exec();
+    delete notify;
     delete soundServer;
     delete dispatcher;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic