diff --git a/src/autostart.cpp b/src/autostart.cpp index 64473c8..2c15469 100644 --- a/src/autostart.cpp +++ b/src/autostart.cpp @@ -102,7 +102,10 @@ void updateService() { if (bisDesktop) service = new KService( fileName.path() ); } ~desktop() { - delete service; + if(service) { + service = NULL; + delete service; + } } };