Skip to content

Commit

Permalink
Initialising the directory during the clear instead of deleting it
Browse files Browse the repository at this point in the history
  • Loading branch information
theod committed Oct 12, 2013
1 parent 7caead6 commit a89b630
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Modular/library/PeerObject/TTApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ TTErr TTApplication::DirectoryClear()
if (mName == getLocalApplicationName)
return kTTErrGeneric;

delete mDirectory;
mDirectory = new TTNodeDirectory(mName);
mDirectory->init();
mDirectory->getRoot()->setObject(TTObjectBasePtr(this));

return kTTErrNone;
Expand Down

0 comments on commit a89b630

Please sign in to comment.