summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kcmautostart/kcmautostart-3.5.13-fix_crash_on_exit.patch
blob: da0940d8904b134531446392bc03d4681d5432d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- kcmautostart/src/autostart.cpp.crash_on_exit	2013-05-10 23:35:31.443410887 +0200
+++ kcmautostart/src/autostart.cpp	2013-05-10 23:46:31.852926622 +0200
@@ -102,7 +102,10 @@
   if (bisDesktop) service = new KService( fileName.path() );
   }
   ~desktop() {
-    delete service;
+    if(service) {
+      service = NULL;
+      delete service;
+    }
   }
 };