when allocating an array delete it as array as well
authormishas <mikhail.sobolev@gmail.com>
Mon, 16 Apr 2007 11:29:58 +0000 (11:29 +0000)
committermishas <mikhail.sobolev@gmail.com>
Mon, 16 Apr 2007 11:29:58 +0000 (11:29 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@189 3ba93dab-e023-0410-b42a-de7732cf370a

simple-launcher.cc

index 1426f02..a609f4c 100644 (file)
@@ -203,7 +203,7 @@ void SimpleLauncherApplet::loadConfig() {
       addItem(myItems, buffer, (p != NULL && (*p == '1' || *p == 'y' || *p == 'Y')));
     }
 
-    delete buffer;
+    delete [] buffer;
   }
 }