From a098d09ef14e4b41a0120dd431ef4777fd420042 Mon Sep 17 00:00:00 2001 From: cniehaus Date: Thu, 21 Nov 2002 10:41:31 +0000 Subject: applied one of Simons patches. --- (limited to 'core') diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp index 7373ea8..d9382d2 100644 --- a/core/launcher/startmenu.cpp +++ b/core/launcher/startmenu.cpp @@ -360,7 +360,7 @@ void StartMenu::loadApplets() applet-> id = launchMenu-> insertItem ( applet-> iface-> icon ( ), applet-> iface-> text ( ) ); applets.insert ( applet-> id, new MenuApplet(*applet)); } - delete xapplets; + delete [] xapplets; if ( sepId && ( launchMenu-> idAt ( launchMenu-> count ( ) - 1 ) == sepId )) { // no applets launchMenu-> removeItem ( sepId ); diff --git a/core/launcher/systray.cpp b/core/launcher/systray.cpp index 4859e48..be55791 100644 --- a/core/launcher/systray.cpp +++ b/core/launcher/systray.cpp @@ -128,7 +128,7 @@ void SysTray::addApplets() applet->applet = applet->iface->applet( this ); appletList.append(*applet); } - delete applets; + delete [] applets; #else TaskbarApplet applet; applet.iface = new ClockAppletImpl(); -- cgit v0.9.0.2