Fixing project references and dependencies that Kent accidentally removed
[MenuTunes.git] / PlaylistNode.m
index 12ae00b..050912c 100644 (file)
@@ -27,7 +27,7 @@
                _name = [n retain];
                _type = t;
                _index = i;
                _name = [n retain];
                _type = t;
                _index = i;
-               _children = [[NSMutableArray alloc] init];
+               _children = nil;
                _parent = nil;
        }
        return self;
                _parent = nil;
        }
        return self;
@@ -53,6 +53,9 @@
 
 - (NSMutableArray *)children
 {
 
 - (NSMutableArray *)children
 {
+       if (!_children) {
+               _children = [[NSMutableArray alloc] init];
+       }
        return _children;
 }
 
        return _children;
 }