X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/6f3e95b38759c72706e83ff140ae17667cdfad22..fb7602562afcd4350ae64c7e2a81fdd7eb2b4a15:/PlaylistNode.m diff --git a/PlaylistNode.m b/PlaylistNode.m index 12ae00b..050912c 100644 --- a/PlaylistNode.m +++ b/PlaylistNode.m @@ -27,7 +27,7 @@ _name = [n retain]; _type = t; _index = i; - _children = [[NSMutableArray alloc] init]; + _children = nil; _parent = nil; } return self; @@ -53,6 +53,9 @@ - (NSMutableArray *)children { + if (!_children) { + _children = [[NSMutableArray alloc] init]; + } return _children; }