Skip to content

Commit

Permalink
more drumkit.cpp code cleanup..
Browse files Browse the repository at this point in the history
  • Loading branch information
mauser committed Sep 17, 2015
1 parent 83cf007 commit eed4d32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/src/basics/drumkit.cpp
Expand Up @@ -52,7 +52,7 @@ const char* Drumkit::__class_name = "Drumkit";

Drumkit::Drumkit() : Object( __class_name ), __samples_loaded( false ), __instruments( 0 ), __components( NULL )
{
__components = new std::vector<DrumkitComponent*> ();
__components = new std::vector<DrumkitComponent*> ();
}

Drumkit::Drumkit( Drumkit* other ) :
Expand All @@ -67,15 +67,15 @@ Drumkit::Drumkit( Drumkit* other ) :
{
__instruments = new InstrumentList( other->get_instruments() );

__components = new std::vector<DrumkitComponent*> ();
__components->assign( other->get_components()->begin(), other->get_components()->end() );
__components = new std::vector<DrumkitComponent*> ();
__components->assign( other->get_components()->begin(), other->get_components()->end() );

}

Drumkit::~Drumkit()
{
__components->clear();
delete __components;
__components->clear();
delete __components;

if( __instruments ) delete __instruments;
}
Expand Down

0 comments on commit eed4d32

Please sign in to comment.