}
void SimpleLauncherApplet::runDialog() {
- LauncherItems newItems = myItems;
+ // We update the items before using them to avoid a small memory leak
+ // FIXME: deal with the situation in a better way (figure it out first :))
+ updateItems(myItems); // User requested 'settings', let's give her the latest stuff :)
- updateItems(newItems); // User requested 'settings', let's give her the latest stuff :)
+ LauncherItems newItems = myItems;
SLAList list(SL_APPLET_ICON_SIZE, newItems);