diff options
author | Francois Andriot <francois.andriot@free.fr> | 2013-07-31 20:18:27 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-07-31 20:18:27 -0500 |
commit | 9e301e056a0068c758726f00e5656f3ab10f21e5 (patch) | |
tree | 702d43fba27e7f06c5393abb3cb3b8e2c665f72f /src | |
parent | 9f1e0a4c6874ed976d95db26553bf428977cf3b3 (diff) | |
download | kcmautostart-9e301e056a0068c758726f00e5656f3ab10f21e5.tar.gz kcmautostart-9e301e056a0068c758726f00e5656f3ab10f21e5.zip |
Fix crash on exit. This resolves bug report 1586.
Diffstat (limited to 'src')
-rw-r--r-- | src/autostart.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; + } } }; |