/* * Copyright 2009 Stephan Aßmus . * All rights reserved. Distributed under the terms of the MIT License. */ #include "PLItemsCommand.h" #include #include #include "Playlist.h" #include "PlaylistItem.h" using std::nothrow; PLItemsCommand::PLItemsCommand() : Command() { } PLItemsCommand::~PLItemsCommand() { } void PLItemsCommand::_CleanUp(PlaylistItem**& items, int32 count, bool deleteItems) { if (items == NULL) return; if (deleteItems) { for (int32 i = 0; i < count; i++) items[i]->ReleaseReference(); } delete[] items; items = NULL; }