macosx: PLItems parent should be weak to avoid retain cycles
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Wed, 15 Jul 2015 17:24:41 +0000 (19:24 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Wed, 15 Jul 2015 17:24:41 +0000 (19:24 +0200)
modules/gui/macosx/PLItem.h

index 7f05459..3491599 100644 (file)
@@ -28,7 +28,7 @@
 @property(readonly, copy) NSMutableArray *children;
 @property(readonly) int plItemId;
 @property(readonly) input_item_t *input;
-@property(readwrite, retain) PLItem *parent;
+@property(readwrite, weak) PLItem *parent;
 
 - (id)initWithPlaylistItem:(playlist_item_t *)p_item;